#binayak

1 messages · Page 1 of 1 (latest)

sage ledgeBOT
polar parcel
#

I am not able to create a direct payment from backend

deep quail
#

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?

polar parcel
#

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

deep quail
#

you need to make that request on a connected account, which that code does not.

polar parcel
#

okay, can we charge platform fees for our application? with this code?

deep quail
#

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?

polar parcel
#

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.

fiery badge
#

Hey! Taking over for my colleague. Let me catch up.

fiery badge
polar parcel
#

can we do the same with express account?

#

we are onboarding customers with express account

polar parcel
#

then shall I follow this link for further implementation?

fiery badge
#

Yes if you want to work with direct charges