[英]Paypal Website Payments Pro Iframe - pay with paypal button is redirecting to paypal
[英]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.