curl - Paypal 总额高于我创建的 "fixed_price"(通过 curl)

标签 curl paypal payment fee

我已经使用 PayPal 开发人员文档中显示的 curl 创建了我的计划。

https://developer.paypal.com/docs/api/subscriptions/v1/#plans_create

这是我制定的计划:

curl -v -X POST https://api.sandbox.paypal.com/v1/billing/plans \
-H "Content-Type: application/json" \
-H "Authorization: Bearer **MY_ACCESS_TOKEN**" \
-H "PayPal-Request-Id: MWC-SANDBOX-001" \
-d '{
  "product_id": "**MY_PRODUCT_ID**",
  "name": "SANDBOX Membership",
  "description": "SANDBOX Membership Monthly Plan",
  "status": "ACTIVE",
  "billing_cycles": [
    {
      "frequency": {
        "interval_unit": "MONTH",
        "interval_count": 1
      },
      "tenure_type": "REGULAR",
      "sequence": 1,
      "total_cycles": 999,
      "pricing_scheme": {
        "fixed_price": {
          "value": "149",
          "currency_code": "PHP"
        }
      }
    }
  ],
  "payment_preferences": {
    "auto_bill_outstanding": true,
    "setup_fee": {
      "value": "0",
      "currency_code": "PHP"
    },
    "setup_fee_failure_action": "CONTINUE",
    "payment_failure_threshold": 3
  },
  "taxes": {
    "percentage": "12",
    "inclusive": false
  }
}'

我的意图是让用户最初以 149 php 的固定价格订阅此计划,然后每月订阅一次。

我不明白为什么当 PayPal 显示付款收据(沙盒模式)时,总金额高于我在计划中配置的固定价格 (149)。

enter image description here

额外的 17.88 是从哪里来的?

最佳答案

我怀疑您想将 "inclusive": false 设置为 "inclusive": true

否则就是加12% on top of您的总价(如您所见)。

关于curl - Paypal 总额高于我创建的 "fixed_price"(通过 curl),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57404951/

相关文章:

javascript - 使用 node-fetch 将带有 GET 和 data-urlencode 选项的 cURL 命令转换为 javascript

Paypal 沙箱 IPN 模拟器 - 502 Bad Gateway

android - 使 Stripe 服务成为动态支付服务

api - Paypal 创建沙盒交易

html - Paypal 按钮和文本之间的距离

ruby-on-rails - 类地址的父类(super class)不匹配 Braintree

paypal - 通过 Paypal 向我的客户收取随机金额

linux - 由于 TLS 错误,无法进行 svn checkout

PHP curl 将 Content-Type 更改为 application/x-www-form-urlencoded。不应该那样做

javascript - Google Drive API 使用 curl 调用创建文件而不是文件夹