2016-03-02 45 views

回答

2

很好地集成PayPal的API有REST接口:https://developer.paypal.com/docs/api/

所以,你永遠可以讓使用普通的GET/POST請求或通話如我建議使用RestSharp(http://restsharp.org/

一個簡單的例子將是(無憑證):

var client = new RestClient("https://api.paypal.com/v1/payments/orders/order-id"); 
var request = new RestRequest(Method.GET); 
request.AddHeader("cache-control", "no-cache"); 
IRestResponse response = client.Execute(request); 
+0

釷謝謝你的寶貴回覆。我只想知道(亞洲 - 印度尼西亞)印度市場的其他api可用嗎? –

+0

@ kushalmaniyar支持的貨幣:https://developer.paypal.com/docs/integration/direct/rest-api-payment-country-currency-support/,但您也可以從美國撥打代碼並自行轉換。 –