#dnegi-connect
1 messages ยท Page 1 of 1 (latest)
yes, with application fee included
Gotcha. So you can use the Stripe Account Header in any of your API calls to access the Connected Account. See: https://stripe.com/docs/connect/authentication for how to do that.
So one way here to get the customer ID would be to retrieve the PaymentIntent on the Connected Account using https://stripe.com/docs/api/payment_intents/retrieve and passing the Stripe Account header.
That said, what is the flow here? You likely want to be using Webhooks.
You can set up a Connect Webhook endpoint (https://stripe.com/docs/connect/webhooks) and then listen for the payment_intent.succeeded webhook, which will contain information about the successful paymentintent including the Customer ID.
Great, I can try it with stripe accoun header while retreiving paymentIntent.
๐
Thanks!
Sure thing!
You said: "I have tried the stripe account header and what I find out is , customer was not even created with paymentIntent, I was confirming the payment using payment method in client-side"
yes
Gotcha, in this case you do need to create the customer object prior to the PaymentIntent and pass the Customer ID when creating the PaymentIntent and pass setup_future_usage if you want to save card details for the future.
Take a look at: https://stripe.com/docs/payments/save-during-payment
actually I needed the customer ID, it is required for the new setup I am working on that is refersion
refersion affiliate program with stripe
๐ bismark had to hop off, but give me a minute to catch up
sure @hybrid anvil take your time
Can you clarify why you can't be creating the customer object prior to creating the Payment Intent? Have you already previously created the customer objects
Yes, as long as you create the Customer with the Stripe-Account header as well
great, Thanks guys