- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
I was receiving an error from stripe that was preventing cards from being processed. Apparently the Stripe API was expecting the order number in the metadata as a string, and the module was passing an array instead. Simple fix was changing line 524 of commerce_stripe.module from this...
commerce_stripe_add_metadata($c, $order);
to this...
commerce_stripe_add_metadata($c, $order->order_number);
This now allows Stripe to function but commerce_stripe_test.module is triggering notices in Drupal's logs...
Type php
Date Monday, November 7, 2016 - 18:50
User admin
Location http://mysite.com/checkout/85/review
Referrer http://mysite.com/checkout/85/review
Message Notice: Trying to get property of non-object in commerce_stripe_test_commerce_stripe_metadata() (line 12 of /usr/local/www/apache24/data/sites/all/modules/commerce_stripe/tests/commerce_stripe_test.module).
Severity notice
Closed: outdated
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.