#paly

1 messages · Page 1 of 1 (latest)

cobalt jewelBOT
raven pumice
odd junco
#

that means as soon as I get the checkoutId while creating a checkout session, I need to make another call to get the paymentID. right?

raven pumice
#

The create call itself will return a full Checkout Session object

#

You can see the PaymentIntent ID without retrieving the session again

odd junco
#

I am not see the paymentInten in the objec. Not even in the logs

#

I hit this curl

curl https://api.stripe.com/v1/checkout/sessions
-u sk_test_51LWfCbEKi7TmDGM93Jsvjz7H1VrtmZl95zJQm9xmyxpOAywbp1eek5Erl5Ml2fHIvcGP5jL05KesSxWmpmuMNvnl00yXMyNgdW:
-H "Stripe-Account: acct_1NdvZzBzcSw7JdYb"
-d "payment_method_types[0]=ideal"
-d "payment_method_types[1]=card"
-d "line_items[0][price_data][currency]=eur"
-d "line_items[0][price_data][product]=prod_OUVvnJhlYPTyty"
-d "line_items[0][price_data][unit_amount]=700"
-d "line_items[0][quantity]=1"
-d "mode=payment"
-d "success_url=https://example.com/success"
-d "cancel_url=https://example.com/cancel"

raven pumice
#

Can you send me the ID of the Checkout Session that that call created?

odd junco
#

"id": "cs_test_a1gx2TXYvglxB8EnE6dkUTGqab926nfqfa3j0FWORlGHyXd2jCh9qtlZT8",

#

payment_intent is null in the response

raven pumice
#

Thank you for providing the ID. Checking in to why that is. I see an ID in my calls wiht similar parameters, looking in to what the difference is.

#

Apologies, I forgot about that change.

odd junco
#

that means I am using the older version or i am on correct version

raven pumice
#

So it may be better to use the checkout session ID and the checkout.session.completed event

odd junco
#

Actually I was siupposed to use the checkout.session.completed event but when I am seeing the payment logs on stripe connect account It's not seinding the above webhook instead of it I am getting payment.intent

#

can you look at

acct_1NdvZzBzcSw7JdYb/payments/pi_3NhYMFBzcSw7JdYb1F3j5xgg

raven pumice
odd junco
#

Let me check