#usmannasir
1 messages · Page 1 of 1 (latest)
Hi there, you can access customer_details from a checkout session object https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
no actually we want to ask one additional detail from customer which is not address and other normal attributes, we want to ask something custom when they are subscriping and pass it via webhook to our platform
You can associate a metadata (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata) to a checkout session object and retrieve it later during webhook handling
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
All CyberPanel Add-ons including WordPress Manager, RSPAMD Manager and more..
i set metadeta already, but its not showing in payment page
Then you should associate it to the PaymentIntent's metadata https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
how to do that from stripe interface as I am creating the product in stripe, customers will be redirected to stripe to buy and then stripe will send webhook to our end-point url
I don't think you can create a checkout session from Stripe Dashboard. You need to call Stripe API and create a checkout session from your backend.
i am redirecting customers directly to product landing page here "https://buy.stripe.com/14kfZ2asC43HfU43cd" on this page i want to take custom information from user, i think that is not possible
So you are using Payment Link I guess?
I will be honest with you, i dont know exact terminlog to this, but in stripe it does say that copy "payment link"
Not possible, there's no option that allow you to collect additional information in a checkout page. But you can do it programatically by using the API that I sent you earlier
ah yes. I know that we can do using code we are currently managing subscription on our end and just using stripe for payments. but we wanted to offload subscription to stripe.
but thanks for your help though
appreciated
but i suppose this should be allowed.. mau open new doors to stripe
If you are going to use Stripe subscription, I'll suggest you to use Checkout Session, and you can also associate custom data with the subscription_data.metadata hash (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can always programmatically associate custom data in a checkout session, it's just that the checkout page doesn't provide fields to collect addiitional data
i dont think we can create session without using our keys
You need to use secret key to create a checkout session
ah yes that is not possible in our current approch. cant use secret key as this is open code,
Then you need to figure out a safe way to save and use the secret key
thanks Jack, really nice talking
Welcome!