繁体   English   中英

我是否需要“专业”贝宝帐户才能使用Payments API

[英]Do I need the “Pro” Paypal account to use the Payments API

正如标题所要求的,我是否需要拥有一个“ Pro”帐户才能使用Payment 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"
  }
}'

这取决于您定义“ 我的网站 ”的严格程度。

不需要专业账户通过或者是引导游客到PayPal来处理支付按钮重定向弹出

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

希望这可以帮助! :)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM