#dnegi-connect

1 messages ยท Page 1 of 1 (latest)

amber widget
#

Hi there! I assume you are using Direct Charges on your Connected Accounts?

olive harbor
#

yes, with application fee included

amber widget
#

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.

olive harbor
#

Great, I can try it with stripe accoun header while retreiving paymentIntent.

amber widget
#

๐Ÿ‘

olive harbor
#

Thanks!

amber widget
#

Sure thing!

amber widget
#

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"

olive harbor
#

yes

amber widget
#

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.

olive harbor
#

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

hybrid anvil
#

๐Ÿ‘‹ bismark had to hop off, but give me a minute to catch up

olive harbor
#

sure @hybrid anvil take your time

hybrid anvil
#

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

olive harbor
#

no, I haven't tried it yet

#

is it fine to do that and pass the ID in paymentIntent

hybrid anvil
#

Yes, as long as you create the Customer with the Stripe-Account header as well

olive harbor
#

great, Thanks guys