Closed (fixed)
Project:
Commerce Stripe
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2012 at 02:47 UTC
Updated:
19 Jan 2013 at 05:00 UTC
I'm using comerce_kickstart V2.0
i've tried using commerce_stripe, and it gives me undefined function actions() on line 712 of /profiles/commerce_kickstart/modules/contrib/commerce/modules/payment/commerce_payment.module
// Then load the Rule configuration that enables the method.
$rule = rules_config_load($rule_name);
// Iterate over its actions to find one with the matching element ID and pull
// its settings into the payment method object.
$payment_method['settings'] = array();
drupal_set_message("<pre>TEST:".print_r($rule,1)."</pre>");
foreach ($rule->actions() as $action) {
if ($action->getElementName() == 'commerce_payment_enable_' . $method_id) {
if (is_array($action->settings['payment_method']) && !empty($action->settings['payment_method']['settings'])) {
$payment_method['settings'] = $action->settings['payment_method']['settings'];
}
}
}
I tried disabling commerce_stripe and it works again.
?>
Comments
Comment #1
acausing commentedAlso stripe is not appearing in Service Provider it should appear in there right so i can access the configuration page?
this is error 404: http://mysite/admin/commerce/config/payment-methods/manage/commerce_paym...
Comment #2
janip commentedPushed a fix for this to 7.x-1.x-dev
Comment #3
janip commentedReleased 7.x-1.0-rc4
Comment #4
acausing commentedThanks Janip, will try to test more, any plan to comeup integration with stripe.com/connect ?