PayPal 支付接入流程

参考 http://www.cnblogs.com/eggqing/p/5429983.html

https://www.paypal-biz.com/product/pdf/PayPal_IPN&PDT_Guide_V1.0.pdf

https://developer.paypal.com/docs/classic/products/express-checkout/

最新的支付接口应该全部采用 REST API 的方式,主要参照官方文档以及下面这篇博客。

https://www.leocode.net/article/index/14.html

账号准备:

https://developer.paypal.com/developer/applications/

务必使用此处的 REST API,创建一个 APP,然后获得标准三大件:

  1. Sandbox Account/PayPal Account:这是一个邮箱地址
  2. Client ID
  3. Secret

第一步:获取 Access Token

https://developer.paypal.com/docs/api/auth-headers/#obtain-users-consent

https://www.sandbox.paypal.com/signin/authorize?client_id=AW9JoyihhXdhxA5w8vOyAN-JCq3LusXQ5-FOWODxUGwTldfUzOIBnRzojWEx7GEK7ggj-4DLiyJdhYVl&response_type=code&scope=openid&redirect_uri=http://unichina.hwc.easecloud.cn/payment/paypal/return.php

https://developer.paypal.com/docs/integration/paypal-here/merchant-onboarding/obtaining-refresh-token-and-access-tokens/

http://stackoverflow.com/a/30583812/2544762

https://developer.paypal.com/docs/api/identity/?mark=authorization%20code

第二步:统一下单

https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/advanced-payments-api/create-web-experience-profiles/

GITHUB

https://github.com/paypal/PayPal-Python-SDK


【转载请附】愿以此功德,回向 >>

原文链接:http://www.huangwenchao.com.cn/2017/03/paypal-integration.html【PayPal 支付接入流程】

发表评论

电子邮件地址不会被公开。 必填项已用*标注