2017-03-21 54 views
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" 
    } 
}' 

回答

2

這取決於你如何嚴格界定「我的網站」。

你做需要專業賬戶通過無論是button redirectpopup引導遊客到PayPal來處理付款。

需要專業賬戶(和SSL)從您自己的頁面與Express Checkout到支付直接處理,提供了一個真正的「無縫」付款。

希望這會有所幫助! :)

+0

我的網站肯定會使用SSL。我沒有興趣添加一個彈出或按鈕。我想在我的網站上使用信用卡表單。 「Express Checkout是目前在線接受信用卡付款並希望添加貝寶作爲付款選項的商家的解決方案。」這不是我的情況,我目前不接受付款,但我想接受信用卡。 – Mark

+1

爲了接受通過PayPal **處理**的信用卡,您不幸需要專業賬戶。這聽起來像你正在尋找[PayPal付款專業](https://www.paypal.com/us/webapps/mpp/paypal-payments-pro)。 –

+0

謝謝@Obsidian Age,這是我一直在尋找的信息。 – Mark

相關問題