#Avtar-customer
1 messages · Page 1 of 1 (latest)
Hi. It sounds like you use Customer belongs to another account
If you can give me the request id req_xxx it's faster to check
Can you please let me know how i can create customer with connected account scope
You want to call Create Customer API, but specify the Stripe header account pointing the connected account
And from where i get req Id ?
You want to call Create Customer API, but specify the Stripe header account pointing the connected account
Yes
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
source: "cus_MHTpF22GKxxWYe",
May I know why are you passing a Customer Id to a source? Which Doc are you following?
I want to pay to connected account , which is working fine. On dashboard it shows guest customer.
Then another requirement is that i want to pay with my saved card when i paid second time.
So card are connected with customer, thats why i pass customer id.
Can you please let me know how i pay with saved card second time.
How i can get list of saved card without customer?
I am creating payment intent, then i use payment sheet on flutter side
I am not familiar with passing a Customer Id to a source. But okie
Looking at cus_MHTpF22GKxxWYe I think it belongs to the Platform account acct_1FZxs2CjFYL1YQCi
While you are calling this request in Connected account using a Stripe Account header
correct?
Yes correct
stripe1.paymentIntents.create({
amount: req.body.amount * 100,
source:customer_id,
currency: "usd",
application_fee_amount: (req.body.amount/100) * 100 ,
automatic_payment_methods: {
enabled: true,
},
}, {
stripeAccount: account_id,
}).then((pay) => {
Here is my code
Yep, so it's expected that the Connected Account wouldn't "understand" the Customer
an Account only understand things on its own scope
Okay, Can you guide me how i can save card then how i can pay with saved card seconf time
I wnt to pay to connected Account
Let's taking a step back.
Do you want to save the card from your customer and charge them with the saved card?
YYes
customer != connected account. Why do you want to pay to Connected Account?
Normally there are the customer, the platform merchant (you) then the connected account (other business partner, a company)
Our application have two type of users
- Donor(having customer account)
- NGO's (having connected account)
I want to pay from customer to connected account
For exapmple
i pay $1
Stripe fee 0.33
Application fee 0.01
Transfer to connected account 0.66
Sure. Have you tried 2 fund flows Destination Charge or Separate Charges and Transfers?
Sound perfectly fit for those flows
Not yet can you share any documentation for that
Sure
Okay let me check and will back to you.
Thanks for your time
Np and good luck!
The client_secret provided does not match any associated PaymentIntent on this account.
Receive this error when try destination charge
Here is req id : req_C5CnSVkyjAyIKL
That's a client request? Destination Charge is purely a server flow
Means i need to remove customer id ?
No I mean that request doesn't show how you implement Destination Charge. The client secret you passed in, which Payment Intent is it?
stripe1.paymentIntents.create(
{ amount: req.body.amount * 100,
currency: 'usd',
application_fee_amount: (req.body.amount/100) * 100,
transfer_data: {
destination: account_id,
},
}
).then((pay) => {
Here is my code
Have a look please
Yes look good. Can you give me the generated PaymentIntent Id? pi_xxx
It's possible that your flutter is using a Stripe Account header, which makes it looks inside the Connected Account. While you are using Destination Charge, the PaymentIntent lives under the Platform account instead
"pi_3LdTQJCjFYL1YQCi0MLcEBPY"
Here is flutter code
await Stripe.instance
.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
paymentIntentClientSecret: paymentSetupIntentClientSecret,
// setupIntentClientSecret: paymentSetupIntentClientSecret,
customerEphemeralKeySecret: ephemeralKey,
customerId: customerID,
applePay: true,
googlePay: true,
testEnv: true,
merchantCountryCode: "US",
allowsDelayedPaymentMethods: true,
currencyCode: "USD",
style: ThemeMode.light,
merchantDisplayName: 'Indigo Donation'))
Can you have a look on it
It looks fine indeed. But when you initialized flutter, didn't you passing in the stripe account id?
Yes,
Stripe.stripeAccountId = userStripeID;
Stripe.merchantIdentifier = AppStrings.merchantIdentifier;
Stripe.publishableKey = AppStrings.publishableKey;
await Stripe.instance
.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
paymentIntentClientSecret: paymentIntentClientSecret,
// setupIntentClientSecret: paymentSetupIntentClientSecret,
customerEphemeralKeySecret: ephemeralKey,
customerId: customerID,
applePay: true,
googlePay: true,
testEnv: true,
merchantCountryCode: "US",
allowsDelayedPaymentMethods: true,
currencyCode: "USD",
style: ThemeMode.light,
merchantDisplayName: 'Indigo Donation'))
Let's remove that line with Stripe.stripeAccountId
ok let me check
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.