#josh-charges
1 messages ยท Page 1 of 1 (latest)
Hi there, please let me take a look ๐
This request has been done on test mode, there is currently only 1 payment in your test mode: https://dashboard.stripe.com/test/payments
If you would like to list the charges for your live mode, you would have to update the secret key in your server's Stripe .NET SDK to the one provided here: https://dashboard.stripe.com/apikeys
Hope this helps ๐
Some additional information, charges are not displayed for setup intents, as these are to save the payment method to customers for future use, but the payment itself has not been processed yet, therefore the charge has not yet occurred ๐
ok, just want to know is there any other way i can get all the users payment history records?
You can use the list Charges API and specify a particular Stripe Customer id for the customer field: https://stripe.com/docs/api/charges/list#list_charges-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This will list all the charges for the specific customer ๐
but based on the test for Stripe API - List all charges , it only return one records, if i filter by customer id will the result be different?
This is currently the only payment in test mode: https://dashboard.stripe.com/test/payments/ch_3JhVDXA8MKVzGAHV1lzhn5XX
And this is not associated with a Customer object
ok ,will give it a try , thanks ya