#Ubaidul

1 messages · Page 1 of 1 (latest)

rapid daggerBOT
spare mango
#

Hi Rubeus

sterile zephyr
#

Hello! You can use that Payment Method for future payments as long as it's been set up for future use and it's attached to a Customer. To set it up for future use you need to use it with either a Setup Intent or a Payment Intent with setup_future_usage set.

spare mango
#

ok thanks

#

do i have to attach to a customer?

#

can i use a guest customer on stripe?

sterile zephyr
#

No, to reuse it it must be attached to an actual Customer, not a guest customer.

spare mango
#

ok got it thank you

#

i know how to create a customer using POST /v1/customers

#

is it possible to automatically create the customer when creating a Payment Intent?

sterile zephyr
#

No, you would need to make both API requests separately.

spare mango
#

ok thank you

#

last question if thats ok

#

much appreciate the support btw

#

can i take the payment, then create a customer ID and attach the payment ID i've received from the payment?

#

so process would be:

  1. create payment intent
  2. make payment using confirmPayment(). capture payment id
  3. create a customer ID and attach the above payment id to the customer
  4. make recurring payments in future date using payment ID
sterile zephyr
spare mango
#

thats amazing