#binayak
1 messages · Page 1 of 1 (latest)
I am not able to create a direct payment from backend
hi! what's the context exactly? Generally if you are able to go to dashboard.stripe.com and login, that's a full/Standard Stripe account.
I am not able to create a direct payment from backend
what code are you using and what exact error message do you get?
here's the snippet, parameters are dynamic
amount: amount,
currency: currency,
payment_method_types: ['card'],
payment_method_options: {
card: {
capture_method: 'manual',
},
},
confirm: true,
customer:customerId,
payment_method: nonce,
//application_fee_amount:platformFee
});
I am unable to charge the application fee
you need to make that request on a connected account, which that code does not.
i.e. you need to pass stripeAccount : https://stripe.com/docs/connect/direct-charges#create-a-charge
what guide are you following? I suggest using https://stripe.com/docs/connect/enable-payment-acceptance-guide .
okay, can we charge platform fees for our application? with this code?
not sure what you mean
you can use our Connect product(Standard Connect with Direct charges) to :
- connect your platform to a user's Stripe account
- call the API to process a payment between that account and an end-customer
- take an application fee which is a "cut" of the payment for your own platform
that's what the guide linked above is for.
was there something else you were trying to do?
okay that's the usecase I had to implement. Thanks for the help, so I can use the direct charge, right? to take the application fee for my own platform.
Hey! Taking over for my colleague. Let me catch up.
Yes as my colleague mentioned above.
In the same page, you can find a diagram that explain that flow
https://stripe.com/docs/connect/direct-charges#flow-of-funds-with-fees
can we do the same with express account?
we are onboarding customers with express account
It's not recommended to use Direct Charges with Express connected Account
https://stripe.com/docs/connect/direct-charges#create-a-charge:~:text=Using direct charges is recommended for Standard accounts
then shall I follow this link for further implementation?
Yes if you want to work with direct charges