#thomasnevink
1 messages · Page 1 of 1 (latest)
Hi there!
You want to use saved payment method for a specific customer, or all of them?
I have used PaymentIntent for making payments and attached payment methods such as cards to a customer, what I need is to kind of like a GET API call where I can view each customers saved cards
Yes you can use this: https://stripe.com/docs/api/payment_methods/customer_list
What is the API endpoint for accepting a payment and showing the status of the paymentIntent?
Do you know how do you want to accept payments? Checkout Session, Payment Element, something else?
The recommended way is with Checkout Session, explained here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
Payment Element
Then everything is explained there: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Or did you mean to make a pyamnet with an existing saved payment method?
In this case it would be this doc: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
It depends, what exactly are you trying to do?
Well, I sent the clientSecret to the front-end using PaymentIntent creation
Now I'm doing confirm payment in my front-end Angular v12
Can you provide a guide for integrating Angular v12 on the front-end and netcoreapp2.2 web api on the backend
Have some issues in the Angular side
Well, I sent the clientSecret to the front-end using PaymentIntent creation
Now I'm doing confirm payment in my front-end Angular v12
Yes that seems correct to me. Does it work, or do you get any errors?
.net api is working fine
Can you provide a guide for integrating Angular v12 on the front-end and netcoreapp2.2 web api on the backend
We don't have guides for Angular unfortunately
https://api.stripe.com/v1/payment_intents/pi_xxx?key=pk_test_yyy&is_stripe_sdk=false&client_secret=pi_xxx_secret_zzz I'm getting this url Resource missing error in the front-end
{
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such payment_intent: 'pi_1Ny9F0JAJfZb9HEBrqIur8WE'",
"param": "intent",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_1ivZr73L3Dlhwi?t=1696580360",
"type": "invalid_request_error"
}
The above is my response body
Thanks! Give me a few minutes to look into this.
Your API request was made by acct_1032D82eZvKYlo2C. However the PaymentIntent ID comes from a different Stripe accounts
It looks like you are using the wrong Stripe API key somewhere.
Where should I handle the paymentintent status? According to the documentation, it is on the front-end side right? Is there a way I could handle it on the api side after doing confirmPayment on the front-end?
If you want to process the payment, then yes you should do that on the backend with webhook events. This is covered here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-post-payment
Ok thanks @urban warren , will get back to you if I get stuck again
Happy to help 🙂