We've moved discussions to Discord

Error in CardsController

Ugurcan Kaya
I get  Stripe::InvalidRequestError  in edit action 

No such customer: Business   

"Business" is the name of the plan.

It happens when I click "Update Payment Method"
Chris Oliver
Your plan is getting sent over as the card_token param somehow then? What do your params for the request show?
Chris Oliver
The payment method gets sent over in the JS as card_token.
https://gitlab.com/gorails/jumpstart-pro/blob/master/app/javascript/controllers/stripe_controller.js#L91

Have you modified the payments code?
Ugurcan Kaya
Chris Oliver   Thanks for pointing it out. It turns out that accidentally replaced the customer_id in admin panel. Thus customer id for stripe was invalid :)



Notifications
You’re not receiving notifications from this thread.