I want to show for user a list of his purchases, I use stripe for payment, and the site itself is written in react, and I'm wondering if it's possible to do this and if so, are there any tutorials / courses on this topic?
I've tried to follow one tutorial wrote with vue.js but I failed to import firebase
CodePudding user response:
Here's a link to Stripe's documentation where they show how to get a list of a customer's transactions: https://stripe.com/docs/api/customer_balance_transactions/list.
Stripe also has a YouTube channel where they have several videos on how to integrate their payment system in different use cases. Here is a video where they show how to set up a basic payment system with React: https://youtu.be/5y5WwF9s-ZI.
CodePudding user response:
If customer
is set during Payment Intent creation, you may search the list of Payment Intents made by the customer using List Payment Intents API with customer
parameter: https://stripe.com/docs/api/payment_intents/list
If customer
is not set during Payment Intent creation, it's possible to search by email address or metadata on the Payment Intents using query
parameter: https://stripe.com/docs/api/payment_intents/search