1
正如标题所问,我是否需要有一个“专业”帐户来使用付款API,特别是CreatePayment端点。我是否需要“专业”Paypal帐户才能使用付款API
我不想使用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"
}
}'
我的网站肯定会使用SSL。我没有兴趣添加一个弹出或按钮。我想在我的网站上使用信用卡表单。 “Express Checkout是目前在线接受信用卡付款并希望添加贝宝作为付款选项的商家的解决方案。”这不是我的情况,我目前不接受付款,但我想接受信用卡。 – Mark
为了接受通过PayPal **处理**的信用卡,您不幸需要专业账户。这听起来像你正在寻找[PayPal付款专业](https://www.paypal.com/us/webapps/mpp/paypal-payments-pro)。 –
谢谢@Obsidian Age,这是我一直在寻找的信息。 – Mark