Stripe API を使用して申請料を徴収しようとしています。リクエストに何かが欠けていると確信しています。
Stripe は、OAuth キー、Stripe-Account ヘッダー、または宛先パラメーターのいずれかが必要であると主張しています。
Stripe-Account
ヘッダーを渡しています。
正しい方向に向けてください。
これが私のcurlリクエストです:
curl https://api.stripe.com/v1/charges \
-u sk_test_<key>: \
-H "Stripe-Account: acct_<key>" \
-d amount=2000 -d currency=usd -d capture=true \
-d card=tok_<key> -d description="curl" -d application_fee=48
これが私が得る応答です:
{
"error": {
"type": "invalid_request_error",
"message": "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).",
"param": "application_fee"
}
}