1
私はそうのように、電荷を作成しています:ストライプコネクト - アプリケーション払い戻しエラー?私のアプリで
$appFee = 100;
$depositCharge = 2000;
\Stripe\Stripe::setApiKey('sk_test_xxxxxx');
$charge = \Stripe\Charge::create(array(
"amount" => (int) $depositCharge,
"currency" => "usd",
"capture" => "true",
"destination" => $providerID,
"application_fee" => (int) $appFee,
"customer" => $customerID
));
その後、私はAPIで払い戻しを処理しようとしています、また、(ので、私の接続アカウントが食べない申請料を返金料金)
$re = \Stripe\Refund::create(array(
"charge" => $chargeID,
"refund_application_fee" => "true"
));
しかし、私はこれを行うとき、私は次のエラーを取得:私は「refund_application_fee」パラメータを省略した場合
{
"error": {
"type": "invalid_request_error",
"message": "Attempting to refund_application_fee on charge ch_xxxxxx, but it has no application fee. To refund the application fee on the associated transfer, set reverse_transfer=true."
}
}
を、それが正常に動作します。このパラメータが原因でエラーになるのはなぜですか?
あなたはストライプに尋ねましたか?この特定のエラーを投げている理由を私たちが助けることができるかどうかわからない – Machavity
あなたに何を伝えるべきか、 'reverse_transfer = true'を設定するのはなぜですか? – cmorrissey