我遵循以下教程在我的市场上启用PayPal:https://developer.paypal.com/docs/business/checkout/set-up-standard-payments/
所以,我写了这段代码:
<script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxxxxx"></script>
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '{{ course.price / 100 }}',
currency: 'EUR'
},
payee: {
merchant_id: '3SBUTQHGTMHWS'
},
}],
});
},这个方法运行良好,但是当我想添加platform_fee时,PayPal返回一个422 (无法处理的实体):
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '{{ course.price / 100 }}',
currency: 'EUR'
},
payee: {
merchant_id: '3SBUTQHGTMHWS'
},
payment_instruction: {
disbursement_mode: 'INSTANT',
platform_fees: [{
amount: {
currency_code: 'EUR',
value: '3'
}
}]
},
}],
});
},如何通过PayPal结账收取平台费?谢谢你的帮忙
发布于 2020-08-18 11:24:44
除非您是经批准的PayPal合作伙伴,否则无法使用platform_fee
https://stackoverflow.com/questions/63455004
复制相似问题