#akrabulislam

1 messages ยท Page 1 of 1 (latest)

stone valveBOT
worthy blade
#

๐Ÿ‘‹ happy to help

remote merlin
#

Hello

worthy blade
remote merlin
#

I can see the customer is null.

worthy blade
#

then no customer was provided

#

would you mind sharing the PaymentIntent Id?

remote merlin
stone valveBOT
ebon scarab
#

So that payment intent was created by a Checkout Session. By default Checkout Session's don't create customers for one-off payments but you can set customer_creation to always if you want a customer object assosciated with your payments https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation

remote merlin
#

Currently, when a user clicks a specific button on the frontend, we redirect them to the payment URL generated by Stripe. Are you suggesting that we should change this process and implement it differently so that a customer is created? Is that the desired approach?

ebon scarab
#

I was not able to find this setting in our dashboard though there are settings that will do this as a side effect

remote merlin
#

I'm a bit confused about our subscription system. We've set up the payment_intent.succeeded event in our backend to track payments. However, we're not getting any user info, like their email, when a payment goes through. It seems that customers aren't being created after successful payments.

#

And the solution you are suggesting I am not getting this kind of property in the dashboard

ebon scarab
#

It sounds like you don't have the "Collect customer's address" box checked in your dashboard for that payment link. If you check it we should collect their address

#

Unfortunately it is looking like we don't have a checkbox for email for one time payments. You can try collecting that via a custom field but that would take more coding on your end

remote merlin
#

Thank you. Let me try to add a custom field

#

I have added one custom field but this is not available in the payment_intent.succeeded event

#

pi_3NqcA1GfBsqAl5dJ1BvH12rJ this is the payment id. Can I get the custom field by calling some api with this payment id

ebon scarab
#

So you can either wait for the checkout.session.completed event