#krishnaKanabar - customer payments
1 messages ยท Page 1 of 1 (latest)
Hello, can you tell me a bit about how you are creating these payments?
Is it with Checkout or creating your own Payment Intents? Or are you directly creating Charges?
Basically API-wise you will want to use some list call and filter by the customer's ID (And probably the status of the payment)
https://stripe.com/docs/api/payment_intents/list#list_payment_intents-customer
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
first one
You will want to use this endpoint then https://stripe.com/docs/api/payment_intents/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That is what will show up in your dashboard page for the customer
Using this: https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Basically, instead of retrieving the payment intent with one API call, and the charges with another, you can do them all from the same call
how to retrieve payment method in payment intent object
You can either expand it from the payment intent call or use the retrieve payment method call https://stripe.com/docs/api/payment_methods/retrieve#retrieve_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
One quick doubt
I have two subscription
- sub_1LXmdNSJsXH2azWQgxgCexni
- sub_1LXoXoSJsXH2azWQ7eiPgDyb
- has default_payment_method
and 2) doesn't have
can you tell me the reaon for this
because flow for both are same in my code
@grim dome are you there?
๐ stepping in here
Pompey had to step away
Let me take a look at the above subsriptions
So for the first Sub you set the default explicitly on a sub update. Take a look at: https://dashboard.stripe.com/test/logs/req_dM1PVYLjxyXHfk
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I have not explicitly did it
You did though
That request used your secret key and uses our server-side PHP library
So you need to debug your code if it is not expected.
Yes it's not expected
Gotcha, in that case I'd recommend stepping through your code to see where the update is occurring.