PHP Curl Paypal Sandbox

后端 未结 3 1976
既然无缘
既然无缘 2020-12-10 05:45

Is it possible to use CURL and Paypal\'s Developer Sandbox? When I try this code it says in print_r($lines); that I need to login to the Sandbox, how can I make it send my

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 06:17

    Maybe not exactly what you want as an answer, but I just keep recommending this script if you want to use PayPal from PHP:

    http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html

    Very clean script, which makes it easy to understand the parts of a transaction and edit things.

    It also comes with examples provided on how to use the script with PayPal's sandbox. If I remember correctly, you just have to change one variable (and you obviously need an account for the sandbox).

提交回复
热议问题