#arat_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1315611540673531944
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! sorry, I don't 100% follow what you're asking
Hello.
first let me tell about my current flow
We Our product has multiple account in stripe based on country. and we make customer in main plateform and make payment inside connect account. so for customer which we make in plateform can use same card for different connect account right.
so when i make any transaction or make any payment it is saved as guest customer and it will not shown any saved card there.
if you're not creating/using your own Customer cus_xxx objects explicitly then no payment methods are saved, yes.
We are using our own customer not from creating payment intent but from app side we attach customer in confirm stage.
When i attached customer in create payemnt intent it will return error.
I don't think you can attach a customer in the frontend, hard to say without any context/code on how you do that.
I can't help with the backend error unless you share the exact error and request ID req_xxx.
There is no error i just need information like why this customer is shown as guest ?
in payment intent and this is the payment intent id :- pi_3QU1UBLnxxBz9JyG1qlR88NI
it's a guest because you didn't pass a Customer cus_xxx object explicitly when creating the PaymentIntent
you didn't say what error you got but it was probably "no such customer cus_xxx", which is because you're making the payment on a connected account which means you need to create the Customer object on that account too. (https://docs.stripe.com/connect/authentication#stripe-account-header)
It will return error while i'm passing while creating intent object let me share my code.
v
intent = await stripe.paymentIntents.create({
amount: 0,
currency: '',
description: '',
payment_method_types: [ 'card' ],
capture_method: '',
statement_descriptor_suffix: '',
application_fee_amount:
},
{
stripeAccount: "ac",
});
Before that we attached payment method in connect account :-
stripe.paymentMethods.create(
{
customer: req.body.customer,
payment_method: req.body.source,
},
{
stripeAccount: beHalfOf,
}
);
what error does it return
yep
I answered how to deal with that above ; which is because you're making the payment on a connected account which means you need to create the Customer object on that account too. (https://docs.stripe.com/connect/authentication#stripe-account-header)
Reason why im not using that beacuse i have concept like customer can re use the same payment method in multiple connect accounts without everytime adding card details.
I want the customer id and payment method on plateform account.
it's a good concept but that will require either using Destination Charges instead or a very custom integration that makes use of https://docs.stripe.com/connect/direct-charges-multiple-accounts#clone-and-create-direct-charges
I'm cloning customer payment method into connect account.
There are multiple problems of using this way.. For the backend point of you.. It's very simple way to integrate like this but if you see from app point of view it is not user friendly flow
Can you please suggest how we mix setup payment intent & create payment intent when user is coming for make a payment
Do you have any documentation steps related to this for IOS ?
what does "mix setup payment intent & create payment intent" mean?
I means when user as making payment. we setup payment intent then create intent. and then attachd payment method and then making payment.
I'm sorry that's just super hard to understand. Do you have some specific code you're asking about that we could look at?
No i mean the link you shared : https://docs.stripe.com/connect/direct-charges-multiple-accounts#clone-and-create-direct-charges
This link have backend code only which have step1. setup intent, step2 clone payment method, step3 create payment intent
That is fine but do you have any reference for IOS integration where it has above integration ?
Hey! Taking over for my colleague. For Ios you can refer to this guide (For Step1 of the Direct Charge Guide).
https://docs.stripe.com/payments/save-and-reuse?platform=ios&mobile-ui=payment-element