#arat_api

1 messages ¡ Page 1 of 1 (latest)

plush hornetBOT
#

👋 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.

lucid oyster
#

hi! sorry, I don't 100% follow what you're asking

gritty talon
#

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.

lucid oyster
#

if you're not creating/using your own Customer cus_xxx objects explicitly then no payment methods are saved, yes.

gritty talon
#

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.

lucid oyster
#

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.

gritty talon
#

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

lucid oyster
#

it's a guest because you didn't pass a Customer cus_xxx object explicitly when creating the PaymentIntent

gritty talon
#

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,
}
);

lucid oyster
#

what error does it return

gritty talon
#

Customer not exist

#

because customer is from main platform.

lucid oyster
#

yep

gritty talon
#

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.

lucid oyster
gritty talon
#

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 ?

lucid oyster
#

what does "mix setup payment intent & create payment intent" mean?

gritty talon
#

I means when user as making payment. we setup payment intent then create intent. and then attachd payment method and then making payment.

lucid oyster
#

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?

plush hornetBOT
gritty talon
#

That is fine but do you have any reference for IOS integration where it has above integration ?

slow isle