#Giriraj

1 messages · Page 1 of 1 (latest)

quaint rainBOT
small sinew
#

Can you describe what exactly it is you're trying to do and what you've tried so far?

rapid timber
#

yes, sure

#
  1. 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.

  2. 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',
  }
);
small sinew
#

And are you seeing a specific error? I suspect it's complaining that the pm_xxx ID doesn't exist

rapid timber
#

i got this error.

small sinew
#

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

rapid timber
#

ok, but when i need to confirm connected account?

small sinew
#

Not sure what that means

quaint rainBOT
rapid timber
#

before create paymentIntents. i need to create and confirm the Setup Intent on the connected account?

distant otter
#

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.

rapid timber
#

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.

distant otter
#

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)

rapid timber
#

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.

distant otter
#

c2c means customer to customer?

rapid timber
#

yes

distant otter
#

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.

rapid timber
#

yes, i know but i need to know understood a to z flow.

distant otter
#

what is an "a to z flow".

rapid timber
#

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?

distant otter
rapid timber
#

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

distant otter
#

did you have a specific technical question about that?

rapid timber
#

yes

distant otter
#

to be clear, a "customer" can not recieve money(except as a refund of a previous payment). Only a Stripe account can recieve funds.

rapid timber
#

i mean how can i transfer money stripe connect to customer?

distant otter
distant otter
rapid timber
#

oh ok got it. let me try

rapid timber
#

@distant otter without information can i active the capability for stripe connect account?

distant otter
#

I don't understand the question.

quaint rainBOT
rapid timber
#

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.

prisma kite
#

For that account, it looks like transfers are disabled.

rapid timber
#

ok, you mean i need to use below code? then it works?

prisma kite
#

Did you tried that request?

rapid timber
#

let me try. wait

rapid timber
prisma kite
#

What is the same? can you share the requestId ?

rapid timber
#

yes

rapid timber
prisma kite
#

You need to provide all required informations.

rapid timber
#

oh, that's serious case for me. bcz client don't require those information.

prisma kite
#

You can't overpass that.

rapid timber
#

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?

prisma kite
#

Sorry, I'm not understand your last reply.

rapid timber
#

i mean we can follow below thing. buyer -> platform-> seller.
like customer -> stripe connect -> customer.

#

can we do this?

prisma kite
#

You can follow that diagram flow for sure. But that has no link with the required information for the connected Account.

rapid timber
#

yes, correct but can we do -> one stripe connect account accept money from customer and transfer money to customer?

prisma kite
#

no you can't transfer money to customer.

#

unless they have a Stripe Connected Account.

rapid timber
#

oh. it's hard to me.