1
如何设置Stripe Omnipay的申请费用? 当我使用stripe的php库,但无法使用Omnipay时它工作正常。条纹连接Omnipay
错误消息: 只能在代表另一个帐户(使用OAuth密钥,Stripe-Account标头或目标参数)进行请求时应用application_fee。
$formData = [
'number' => '4242424242424242',
'expiryMonth' => '8',
'expiryYear' => '2018',
'cvv' => '123',
'firstName' => 'John',
'lastName' => 'Wags',
'email' => '[email protected]' ,
];
$response = $gateway->purchase(
[
'amount' => '16.00',
'applicationFee' => '2.00',
'destination' => 'acct_24xxxxxxxxxxxxxx',
'currency' => 'AUD',
'card' => $formData,
'receipt_email' => '[email protected]',
'description' => 'Ref:10201'
]
)->send();
我在这里做错了什么?