#sajolmahmud010

1 messages · Page 1 of 1 (latest)

round kayakBOT
cloud birch
ionic glen
#

actually I don't have dashboard access. but i can share you the request and response

#

tje request i made for everytime
Array
(
[customer] => cus_Of3SicTp24pPma
[items] => Array
(
[0] => Array
(
[plan] => plan_Of1yAsvi4F0neH
)

    )

[metadata] => Array
    (
        [store_id] => 2960
        [location] => 3167
        [customer_id] => 213642
        [source] => customer_membership
    )

[expand] => Array
    (
        [0] => latest_invoice.payment_intent
    )

[payment_behavior] => default_incomplete

)

the respose that is not returrning payment intent object

cloud birch
#

Which API are you sending?

ionic glen
#

It is a subscription create api. I am using Stripe php packge

cloud birch
#

You need Dashboard acess for debugging, but okie I see 2 successful requests and response

#

And the first one has empty PaymentIntent, correct?

ionic glen
#

yes. absolutely

cloud birch
#

I know you don't have access

#

but you should really ask to

#

If you can see its first Invoice, you will see it applies some balances on the Customer

#

meaning it tried to charge a Customer, but the Customer already has a fund to offer, so it just take from there

#

hence the Invoice is $0, and it didn't create a PaymentIntent

ionic glen
#

oh. got it. but i tried same case with sandbox. it was okay.

#

thanks for the information. I am trying to debug more.

#

one more thing, is it bad if i save client_secret until it is finalized by customer ?