You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which I believe should be $subscription = Subscription::create($subscriptionSettings); to use the Stripe subscription api instead, and 'customer' => $customer, added to the $subscriptionSettings array.
I've tested it locally and it looks like subscriptions are now created properly, but I'm not sure if there's something else I'm missing
Let me know if there's any other details you need
Thanks!
Steps to reproduce
Try to create a subscription using Stripe Elements and the enupal-stripe/stripe/save-order action
Get a "Call to a member function create() on null" error
Description
Hi,
We've been running into problems using Stripe Elements to create subscriptions, I've done a bit of digging and it looks like it is due to this line https://github.com/enupal/stripe/blob/master/src/services/Orders.php#L1187
Which I believe should be
$subscription = Subscription::create($subscriptionSettings);
to use the Stripe subscription api instead, and'customer' => $customer,
added to the$subscriptionSettings
array.I've tested it locally and it looks like subscriptions are now created properly, but I'm not sure if there's something else I'm missing
Let me know if there's any other details you need
Thanks!
Steps to reproduce
enupal-stripe/stripe/save-order
action"Call to a member function create() on null"
errorAdditional info
The text was updated successfully, but these errors were encountered: