PayPal 结帐分期付款计划

发布于 2025-01-16 21:17:42 字数 762 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放手` 2025-01-23 21:17:42

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文