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

acausing’s picture

Also 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...

janip’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Needs review

Pushed a fix for this to 7.x-1.x-dev

janip’s picture

Status: Needs review » Fixed

Released 7.x-1.0-rc4

acausing’s picture

Thanks Janip, will try to test more, any plan to comeup integration with stripe.com/connect ?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.