#alexzada - errors
1 messages · Page 1 of 1 (latest)
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
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
That is the object that is created on the next step of that doc https://stripe.com/docs/payments/accept-a-payment-synchronously?platform=react-native#react-native-collect-card-details
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
hmmm, got it, thank you very much
Glad I could help clarify
do you have a link to a guide that explains how to save the customer's payment method in a Subscription for future purchases?
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
Hello! All of our Subscription guides include instructions for saving a method of payment for future use with the Subscription, which is the same thing you would use for future purchases. This guide is one example: https://stripe.com/docs/billing/subscriptions/build-subscriptions
@snow terrace Just checking in, anything else we can help with?
not on this subject, but i have another doubt
Yeah, what's up?
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?
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?
the guide I used first to implement the payment was this https://stripe.com/docs/payments/accept-a-payment-synchronously. intent.status on the backend refers to the status of PaymentIntent, correct?
Yep, it does.
so i believe it is this same status i need to get in Subscription