You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
Created: 2024-04-24 Wed
Updated: 2024-08-27 15:17 Tue
---
### Merchant SERVER API
**Do NOT invoke PP API from client side directly**
- **方案1**: 数据由后端管理
1. 保存生成的链接
2. 支付中心页面, 请求后端生成PayPal订单
3. 后端使用保存的信息, 生成PayPal请求订单: *createOrder*
- **方案2**: 数据由链接管理
1. 将链接原文发送后端
### Checkout
[Checkout](https://developer.paypal.com/docs/checkout/)
### ACDC
#### Credit card
1. [ ] PayPal本地支付没有结果, `APPROVED`之后无结果
![](Haina/项目/支付中心/atta/p24-approved-but-not-completed.json)
2. [ ] 客人页面: ACDC 显示成功; 后续失败`DECLINED`
![](Haina/项目/支付中心/atta/ACDC-order%20completed%20but%20capture%20DECLINED.json)
3. [ ] 记录approved事件 2024-08-27
#### Google Pay
### Available
- [支持的国家和地区](https://www.paypal.com/ng/webapps/mpp/country-worldwide)
- [PayPal API Status](https://www.paypal-status.com/api/production)
- [Payment methods](https://developer.paypal.com/docs/checkout/payment-methods/)
- [ACDC支持](https://developer.paypal.com/docs/checkout/advanced/eligibility/)
- [测试卡](https://developer.paypal.com/tools/sandbox/card-testing/#link-testgeneratedcardnumbers)
### PayPal Notify
> [!faq] 通知不全
>
> 1. webhook没有发送
> 1. `9BU18513BH318232S`
> 2. `5NP174266F735682P` `CW231214017_T`
> 3. ~~`4NW74413KE195510H` `SHX240325005_T`~~
> 4. ~~`49N102461W2482132` `CA240704075_T`~~
> 2. IPN没有发送
> 1. `39G25248JF041404J` Upsell, 自动转账到账户
> 3. 两个通知都没有
> 1. `2SX71059RU3114540`
> 2. `5XM96027GJ2728935`