#Zan-Checkout

1 messages ยท Page 1 of 1 (latest)

grim dune
#

Hi there, Stripe will still create a PaymentIntent for a CheckoutSession, it's just that the PaymentIntent creation is deferred.

#

You can specify the application_fee via this param.

vagrant latch
#

I'm doing this -

#

But this is not creating PaymentIntent and I'm not getting any fees

#

Also, when I search for that payment Intent ID in Stripe Dashboard, it's not found

grim dune
#

Can you share with me the checkout session ID?

vagrant latch
#

cs_test_a1YspWkdh9vbljzSGoty72Rp7Q8v10lwdJcozC4XnFgCabHCJcq2wtR9kp

#

PI for this session is pi_3Lc1tdQSYBjWUolt1twhX6lg

grim dune
#

The PI is still null because this Checkout session is not yet completed

vagrant latch
#

Do i need to do anything else in order to complete this session?

grim dune
#

Once your customer has completed this checkout session, a PaymentIntent is created and you can access it.

vagrant latch
#

It says completed in log

grim dune
#

Did you attempt to access the PaymentIntent before the checkout session is completed?

vagrant latch
#

I didn't see any Application fees for any of the transactions done so far so I started reading docs and got to know ant PI so searched for one of the PI

#

Payment goes into Completed status instantly after payment from portal

grim dune
#

You set application_fee_amount to 0 in the checkout session creation request, do you want to set it to a different amount?

vagrant latch
#

It's not 0, I tried hard coded 10

#

still same result

grim dune
#

I see it's 0 from the log.

Send me the other checksession ID.

vagrant latch
#

It always shows 0 there

#

That's the issue

grim dune
#

Can you double check and make sure (long?) ApplicationFee is not 0?

vagrant latch
#

Yes, you are right. It's 0

#

Thanks ๐Ÿ™‚

grim dune
#

Nice, mystery solved ๐Ÿ™‚