#victoria - Subscription Creation

1 messages ยท Page 1 of 1 (latest)

red lynx
#

Hi ๐Ÿ‘‹

round holly
red lynx
#

Can you describe the process flow you are trying to accomplish?

round holly
#

Yes, I'm using the subscription to make a payment with installments. But I want to confirm the card that is been used to make the payment.

#

in each subscription request, i save the subscription id in the database, so each time i make a new request, i check if there is an existing code in there

#

if there is a code in there, i know that this subscription needs a confirmation

#

so i was thinking in using stripe.PaymentIntent.confirm()

#

but i dont know if this is used ONLY for the stripe.PaymentIntent.create()

#

or i can use this for the stripe.Subscription.create() too

#

I'm missing something?

#

this function is called when the user enter in the payment endpoint

red lynx
#

How are you collecting paymennt information?

round holly
#

then i maded this function with the requisitions, but i think i'm missing something (my question is about the confirm_payment_subscription() function)

red lynx
round holly
#

i already followed through the guide actually, i didn't do the tests, im doing now. But my question will pop up again when the tests work

#

thanks for the time!

red lynx
#

Well if you followed that guide then you should be confirming the cards from your front-end integration.

round holly