Jonny M
Jonny M

Reputation: 105

Stripe CLI Payment Intent Connect

Can anyone tell me the syntax for Stripe CLI application fees keep getting this error

"Can only apply an application fee when the request is made on behalf of another account (using an OAuth key, the Stripe-Account header, or the destination parameter)"

I cant decipher the destination parameter syntax e.g

stripe payment_intents create --amount 2000 --application-fee-amount 500 --customer cus_testuser --currency=eur --payment-method pm_card_visa --confirm=true -d transfer_data[]=acct_test user

Upvotes: 0

Views: 263

Answers (1)

karbi
karbi

Reputation: 2173

You can create a destination charge with an application fee through the Stripe CLI like this:

stripe payment_intents create --amount 2000 --application-fee-amount 500 --customer cus_testuser --currency=eur --payment-method pm_card_visa --confirm=true -d transfer_data[destination]=acct_xxx

Note: The change is the "destination" between brackets.

Upvotes: 2

Related Questions