#Giriraj
1 messages · Page 1 of 1 (latest)
Can you describe what exactly it is you're trying to do and what you've tried so far?
yes, sure
-
i m creating customer payment method using below code.
const setupIntent = await stripe.setupIntents.create({
customer: customerId,
payment_method_types: ["card"],
});
also i m used card element which is stripe provided. -
when customer paying amount i use below code.
var paymentIntentParams = {
amount: amount,
currency: "usd",
customer: customerId,
payment_method: paymentMethod.id,
off_session: true,
confirm: true,
payment_method_types: ['card'],
};
const paymentIntent = await stripe.paymentIntents.create(
paymentIntentParams,
{
stripeAccount: 'acct_1NGcDxPY07jfptqo',
}
);
And are you seeing a specific error? I suspect it's complaining that the pm_xxx ID doesn't exist
i got this error.
Yup, as expected. It's because you're creating the Setup Intent on the platform account. You're then trying to use the Payment Method generated by that Setup Intent to create a payment on your connected account
You're going to need to create and confirm the Setup Intent on the connected account (via the stripeAccount parameter) or clone the PM from the platform to the connected account: https://stripe.com/docs/payments/payment-methods/connect
ok, but when i need to confirm connected account?
Not sure what that means
before create paymentIntents. i need to create and confirm the Setup Intent on the connected account?
if the use case is to save the customer's card now, and then charge that card hours/days later, then yes you would use a SetupIntent now and a PaymentIntent later to charge.
ok, i have 2 customer. those 2 have with card details. and one is stripe connect account.
i m trying to payment customer to stripe connect.
but it's getting me below error.
i have alredy sent my code. but it's unable to work.
yes, that's because you created the SetupIntent(and therefore, the saved PaymentMethod) on the platform account. It's impossible for the Connected account to then charge the saved card , they are separate accounts.
as my colleague mentioned, you can try creating the SetupIntent on the connected account(by passing {stripeAccount: 'acct_xxx'} on all the requests to create + confirm the SetupIntent)
or if you need to keep the PaymentMethod on the platform, it's also possibile to investigate cloning it to the connected account. https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
yes, currect. but acually i need to pay c2c. so, i have created one stripe account.
one stripe account is manage all customer's?
suppose i have 100 customer. and i need to pay c2c.
c2c means customer to customer?
yes
well the way that works in Stripe is that one Stripe account charges the end-customer, and then you can use Connect to route the funds to another Stripe account, in general.
yes, i know but i need to know understood a to z flow.
what is an "a to z flow".
i mean i need to understood full payment flow.
like how it's works, how it's take charges.
is there any link to understood full flow?
there are various guides on https://stripe.com/docs/connect for ways to set things up
ok thanks let me check and if i any query let you know.
thanks man now i have sent payment to stripe connect. it's working fine.
now i need to transfer money stripe connect to customer @distant otter @small sinew
did you have a specific technical question about that?
yes
to be clear, a "customer" can not recieve money(except as a refund of a previous payment). Only a Stripe account can recieve funds.
i mean how can i transfer money stripe connect to customer?
that's just repeating the question you already asked, do please try to elaborate and not just repeat it
mostly, you don't. A customer doesn't recieve money, a Stripe account does. So it goes back to what I said earlier : "one Stripe account charges the end-customer, and then you can use Connect to route the funds to another Stripe account"
oh ok got it. let me try
@distant otter without information can i active the capability for stripe connect account?
I don't understand the question.
i need to active this on stripe connect account.
it's possible to active with some information like, email and name?
i m trying with below code.
const account = await stripe.accounts.create({
email: user.email,
country: 'US',
type: 'express',
capabilities: {
card_payments: {
requested: true,
},
transfers: {
requested: true,
},
},
business_type: 'individual',
});
without activation i can't able to transfer money.
ok, you mean i need to use below code? then it works?
Did you tried that request?
let me try. wait
yes, i have tried. still same.
What is the same? can you share the requestId ?
i m trying with email and name. not provided business details. i don't require bussiness details.
You need to provide all required informations.
oh, that's serious case for me. bcz client don't require those information.
You can't overpass that.
oh ok
let do one thing. i will create one stripe connect account. and those stripe connect account manage all the things. like customer -> stripe connect account -> customer.
can we do this?
Sorry, I'm not understand your last reply.
i mean we can follow below thing. buyer -> platform-> seller.
like customer -> stripe connect -> customer.
can we do this?
You can follow that diagram flow for sure. But that has no link with the required information for the connected Account.
yes, correct but can we do -> one stripe connect account accept money from customer and transfer money to customer?
no you can't transfer money to customer.
unless they have a Stripe Connected Account.
oh. it's hard to me.