【问题标题】:Do I need the "Pro" Paypal account to use the Payments API我是否需要“Pro”Paypal 帐户才能使用 Payments API
【发布时间】:2017-03-21 19:20:38
【问题描述】:

正如标题所问,我是否需要有一个“专业”帐户才能使用支付 API,特别是 CreatePayment 端点。

我不想使用 Paypal 结帐,我只是想用它们来处理来自我网站的付款。

我知道“功能”列表说自定义和页面结帐需要专业帐户,但我不确定这是否指的是他们的 REST API。

所以基本上我想要使用的是:

curl -v -X POST https://api.sandbox.paypal.com/v1/payments/payment \
-H "Content-Type:application/json" \
-H "Authorization: Bearer Access-Token" \
-d '{
  "intent": "sale",
  "payer": {
  "payment_method": "paypal"
  },
  "transactions": [
  {
    "amount": {
    "total": "30.11",
    "currency": "USD",
    "details": {
      "subtotal": "30.00",
      "tax": "0.07",
      "shipping": "0.03",
      "handling_fee": "1.00",
      "shipping_discount": "-1.00",
      "insurance": "0.01"
    }
    },
    "description": "This is the payment transaction description.",
    "custom": "EBAY_EMS_90048630024435",
    "invoice_number": "48787589673",
    "payment_options": {
    "allowed_payment_method": "INSTANT_FUNDING_SOURCE"
    },
    "soft_descriptor": "ECHI5786786",
    "item_list": {
    "items": [
      {
      "name": "hat",
      "description": "Brown color hat",
      "quantity": "5",
      "price": "3",
      "tax": "0.01",
      "sku": "1",
      "currency": "USD"
      },
      {
      "name": "handbag",
      "description": "Black color hand bag",
      "quantity": "1",
      "price": "15",
      "tax": "0.02",
      "sku": "product34",
      "currency": "USD"
      }
    ],
    "shipping_address": {
      "recipient_name": "Hello World",
      "line1": "4thFloor",
      "line2": "unit#34",
      "city": "SAn Jose",
      "country_code": "US",
      "postal_code": "95131",
      "phone": "011862212345678",
      "state": "CA"
    }
    }
  }
  ],
  "note_to_payer": "Contact us for any questions on your order.",
  "redirect_urls": {
  "return_url": "http://www.amazon.com",
  "cancel_url": "http://www.hawaii.com"
  }
}'

【问题讨论】:

    标签: javascript paypal


    【解决方案1】:

    这取决于您对“我的网站”的定义有多严格。

    您确实不需要通过button redirectpopup 将访问者引导至PayPal 来处理付款。

    需要一个专业帐户(和 SSL)来直接从您自己的页面使用Express Checkout 处理付款,从而提供真正的“无缝”付款。

    希望这会有所帮助! :)

    【讨论】:

    • 我的网站肯定会使用 SSL。我对添加弹出窗口或按钮没有兴趣。我的网站上有一张我想使用的信用卡表格。 “Express Checkout 是一种解决方案,适用于目前在线接受信用卡付款并希望将 PayPal 添加为付款选项的商家。”这不是我的方案,我目前不接受付款,但我想接受信用卡。
    • 为了接受通过 PayPal处理的信用卡,您需要一个专业帐户。听起来您正在寻找PayPal Payments Pro
    • 谢谢@Obsidian Age,这就是我要找的信息。
    猜你喜欢
    • 2012-06-28
    • 2020-01-31
    • 2010-11-18
    • 1970-01-01
    • 2014-05-08
    • 2021-11-16
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    相关资源
    最近更新 更多