#krishnaKanabar - customer payments

1 messages ยท Page 1 of 1 (latest)

grim dome
#

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

grim dome
#

That is what will show up in your dashboard page for the customer

keen garnet
#

okay

#

what does 'expand' param means in subscription create api

grim dome
#

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

keen garnet
#

how to retrieve payment method in payment intent object

grim dome
keen garnet
#

One quick doubt

#

I have two subscription

#
  1. sub_1LXmdNSJsXH2azWQgxgCexni
  2. sub_1LXoXoSJsXH2azWQ7eiPgDyb
#
  1. 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?

versed thunder
#

๐Ÿ‘‹ stepping in here

#

Pompey had to step away

#

Let me take a look at the above subsriptions

keen garnet
#

I have not explicitly did it

versed thunder
#

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.

keen garnet
#

Yes it's not expected

versed thunder
#

Gotcha, in that case I'd recommend stepping through your code to see where the update is occurring.

keen garnet
#

okay

#

found my issue