PayPal 结帐分期付款计划
我正在使用 paypal 接收付款,但我想将分期付款的形式传递给用户,但根据值,我希望它是可变的,我在文档中没有找到任何有关它的内容,是吗?可能的?
this.paypalConfig = {
currency: 'BRL',
createOrder: function (data, actions) {
return actions.order.create({
intent: "CAPTURE",
purchase_units: [{
"amount":
{
"value": self.amount,
"currency_code": "BRL",
"description": self.name,
},
}]
});
},
onApprove: function (data, actions) {
return actions.order.capture().then(function (details) {
},
onCancel: function (data) {
// Show a cancel page, or return to cart
console.log(data);
},
onError: function (err) {
// Show an error page here, when an error occurs
console.log(err);
},
}
I'm using paypal to receive payments, but I would like to pass a form of installment to the user, but depending on the values, I wanted this to be variable, I didn't find anything in the documentation about it, is it possible?
this.paypalConfig = {
currency: 'BRL',
createOrder: function (data, actions) {
return actions.order.create({
intent: "CAPTURE",
purchase_units: [{
"amount":
{
"value": self.amount,
"currency_code": "BRL",
"description": self.name,
},
}]
});
},
onApprove: function (data, actions) {
return actions.order.capture().then(function (details) {
},
onCancel: function (data) {
// Show a cancel page, or return to cart
console.log(data);
},
onError: function (err) {
// Show an error page here, when an error occurs
console.log(err);
},
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于以 BRL 支付的 BR 付款,可以在实时 PayPal Business 账户级别配置分期付款
(如果您在沙箱中使用 BR 沙盒企业帐户< /a> 您还可以 在此处登录沙盒以启用分期付款)
更多PayPal.com 上的信息(葡萄牙语)
For BR payments in BRL, installments can be configured at the live PayPal Business account level
(and if you are testing in sandbox with a BR sandbox business account you can also log into Sandbox here to enable installments)
More information on PayPal.com (Portuguese)