支付宝支付iOS客户端与服务端接口定义
1.点击确认支付
调起支付接口:入参
{
deviceType = ios;
orderId = 3600;
payWay = ALIPAY;
}
接口返回 : 出参
{
code = 0;
data = "alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_id=20170&biz_content=%7B%22body%%BB%91%E5%90%8D%95%E9%A3%9%A9%E6%A3E6%B5%8B%22%2C%22out_trade_no%22%3A%22201804161103183186686%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E9%BB%91%E5%90%8D%E5%8D%95%E9%A3%8E%E9%99%A9%E6%A3%80%E6%B5%8B%22%2C%22timeout_express%22%3A%223m%22%2C%22total_amount%22%utf-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2F183.129.157.26%3A9700%2FALIPAY%2F300%2F01%2FkeyNotify.do&sign=Ir5QEB%2FEau84dLFivHUFvBUCt77IQP4WTKXz%2BUYwrZCAsTY%2Brha5FmB5uYsKpxs1vJRJ1PBie2wO1TYrGQyh6s20KtsIlDWT4Rlr5ICftFJB12zUeeC2LsbYX6HDR9Jpq%2BMJmiRicQSUMgJ9ZBtH33hHrjJ50AP%2BJfqswpkZR7qd0CDomQRStywXrwCX5sBxU9b58yrFj27M6FsNo4GeEvIRKrFP8b4jLNPhmsjfQ823OhxPFo6sWw%3D%3D&sign_type=RSA2×tamp=2018-04-16+11%3A05%3A09&version=1.0&sign=Ir3S6ZRmQZadyGucL%2FLZHr0qAdrArdewI5EBPbj9%2FRdENd2tTc1QQ1IG2KQ0ZOuugvOzvjRM3ZfC53mZfbHr5QEB%2FEau84dLFivHUFvBUCt77IQP4WTKXz%2BUYwrZCAsTY%2Brha5FmB5uYsKpxs1vJRJ1PBie2wO1sIlDWT4Rlr5ICftFJB12zUeeC2LsbYX6HDR9Jpq%2BMJmiRicQSUMgJ9ZBtH33hHrjJ50AP%2BJfqswpkZR7qd0CDomQRStywXrwCX5sBxU9b58yrFj27M6FsNo4GeEvIRKrFP8b4jLNPhmsjfQ823O";
}
调起支付宝:入参 (上面接口data);
支付成功: 支付宝返回
{
memo = "";
result = "{"alipay_trade_app_pay_response":{"code":"10000","msg":"Success","app_id":"24993699","auth_app_id":"2017699","charset":"utf-8","timestamp":"2018-04-16 11:07:39","total_amount":"0.01","trade_no":"20180416437","seller_id":"2088521254","out_trade_no":"20183186686"},"sign":"hIc1R4/q0lluaxiWDkIOyG5m2YUzOONTwphjnSL6zjsrOdkA7oloApn3duARMt4JMISphYfEvTY7SKmPOnBMDDnTTLRaw+3vpGeIVYMKsEHcFLjVBM3HaLuq9/3djQbR07FRcMRBh0yQn/r3fcBGt6DfTQx7io2aU3b3MouaKNRlfbZLsLPJSEIgPt1lhuQ8zXKKtiAGXf5iZvFp1i4gn1kEeCsA==","sign_type":"RSA2"}";
resultStatus = 9000;
}
3.支付状态与后台校验接口: 入参
{
deviceType = ios;
orderId = 3600;
payWay = ALIPAY;
}
支付宝后台校验接口状态:出参
成功:
{
code = 0;
}
失败:
{
code = 0;
mas:”支付结果,成功或失败”;
}
共两个接口,中间那个调起支付宝由客户端处理,不需要走后台接口 1 和 3 需要后台提供接口,其他不需要