#alexzada - errors

1 messages · Page 1 of 1 (latest)

final vortex
#

Hello, what are the error messages that you are seeing at the moment?

snow terrace
# final vortex Hello, what are the error messages that you are seeing at the moment?

hello, I'm not getting any error message, on the contrary, it's working perfectly, the payments appear on my dashboard as they should, but I had doubts about the card details, as the backend receives the card details that the customer put in frontend? I would like to understand how this happens, because I don't see the details being sent anywhere

#

basically how the data that is put in that component gets to my backend

final vortex
#

So details like that card number specifically do not go to your backend

#

But your backend will probably get information about a PaymentMethod object one way or another that represents that card

#

And then as you can see, you use the payment method's ID (pm_123) to tell Stripe to use those card details to make payments

snow terrace
#

hmmm, got it, thank you very much

final vortex
#

Glad I could help clarify

snow terrace
#

do you have a link to a guide that explains how to save the customer's payment method in a Subscription for future purchases?

final vortex
#

If you are already creating the subscription and taking their payment details per that guide, the payment method should already be saved and attached to the customer for future use

slow sleet
slow sleet
#

@snow terrace Just checking in, anything else we can help with?

snow terrace
slow sleet
#

Yeah, what's up?

snow terrace
#

I'm implementing the payment method with completion on the server, synchronously. This payment refers to the value of a delivery, and this value can be paid in installments, to make the payment in installments I am using the stripe.subscription.create API, before I was using the stripe.paymentIntent.create API from where I could get the payment status and return it to the frontend, but how would I do that using Subscriptions?

slow sleet
#

Stripe Subscriptions create Invoices, and those Invoices create Payment Intents, so the info you want should be on one of those objects. Which specific status are you looking for, the status of the Payment Intent?

snow terrace
slow sleet
#

Yep, it does.

snow terrace
#

so i believe it is this same status i need to get in Subscription