#akrabulislam
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Hello
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I can see the customer is null.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Apologies I missed that you were using a Payment Link specifically. You can still use a Payment Link, they also have this setting https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I was not able to find this setting in our dashboard though there are settings that will do this as a side effect
If you are comfortable making API calls, I would reccommend making one API call to update this setting on your existing link https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
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
Custom fields are part of the Checkout Session object https://stripe.com/docs/payments/checkout/custom-fields#retrieve-fields
So you can either wait for the checkout.session.completed event
Or listen for that payment_intent.succeeded event and then use an API call to find the related checkout session https://stripe.com/docs/api/checkout/sessions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.