Paypal API with PHP and cURL

前端 未结 3 1881
[愿得一人]
[愿得一人] 2020-12-13 09:38

I\'m attempting \"the first call\" as outlined by the Paypal API documentation. This is the example provided that I\'m following:

curl https://api.sandbox.pa         


        
3条回答
  •  鱼传尺愫
    2020-12-13 09:58

    JSON and US English appear to be the Defaults, but to be in perfect compliance, add the following line:

    curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json, Accept-Language: en_US");
    

提交回复
热议问题