#bayorwor

1 messages · Page 1 of 1 (latest)

hoary prawnBOT
proven hazel
#

Hi there!

#

Yes, that's correct.

robust fog
#

Ok, thanks

#

After the checkout process is complete, I can retreive the payment method and use it for future transactions, right?

proven hazel
#

It depends. If you created the Checkout Session in "setup" mode or set payment_method_options.us_bank_account.setup_future_usage, then yes.

robust fog
#

Ok, the reason is that, we want to be able to retrieve the payment method and assignment it to a customer created on stripe, create a subscription and attach the customer to it.

#

Hope this approach will help us ?

proven hazel
#

What's your end goal? Chage the customer now, and later create a subscription? Or save the payment method now, and later create a subscription? Or directly create a subscription?

robust fog
#

flow;

  1. create a customer
  2. make a checkout for one-time charges
  3. retrieve the payment method and make a default method for the customer created
  4. create a subscription for customer
proven hazel
#

And it should work

robust fog
#

Well noted with thanks

proven hazel
#

Happy to help 🙂