简体   繁体   中英

How to Integrate paypal SDK to my custom php website?

I am developing a php website which needs to accept payments through paypal and credit cards. I have downloaded paypal php sdk from : https://github.com/paypal/rest-api-sdk-php .I want to implement paypal API to my website , But paypal have too many options to recive payments like , buttons , link flow etc . i need to make payment though curl functions with php. the sdk has examples but it confusing me. i got paypal api username, api password and signature from my paypal account. How to integrate this php paypal sdk to my custom website project ?

If you are using the PayPal REST API via the PHP SDK you should look at the documentation at https://developer.paypal.com/webapps/developer/docs/api/

Specifically for auth the REST API uses OAuth 2.0 - https://developer.paypal.com/webapps/developer/docs/api/#authentication--headers

Here is a tutorial for using curl with the REST API: https://developer.paypal.com/webapps/developer/docs/integration/direct/make-your-first-call/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM