作者:鱼db在海 | 来源:互联网 | 2024-10-21 16:49
支付宝当面付手册https:opendocs.alipay.comopen194106078 使用更高集成度和轻便的alipayesaySDKhttps:github.comali
支付宝当面付手册
https://opendocs.alipay.com/open/194/106078
使用更高集成度和轻便的 alipay esay SDK
https://github.com/alipay/alipay-easysdk
主要接入流程和步骤
需要处理的各种状态切换
public class AliPayTradeStatus {
public static final String WAIT_BUYER_PAY = "WAIT_BUYER_PAY";
public static final String TRADE_CLOSED = "TRADE_CLOSED";
public static final String TRADE_SUCCESS = "TRADE_SUCCESS";
public static final String TRADE_FINISHED = "TRADE_FINISHED";
public static final String BUSINESS_FAILED = "BUSINESS_FAILED";
}
未扫码 超时 取消 ->交易不存在
扫码+未支付+超时 ->关闭订单->code 10000 trade_status TRADE_CLOSED
扫码+30s内支付 +到账->完成订单
扫码+30秒-60秒支付+到账->完成订单
扫码+回调失效+ 支付 + 轮询查账成功+到账->完成订单