Browse Source

in-app payment method

master
frank 2 years ago
parent
commit
ad97e391a2
  1. 41
      alipay_app.md

41
alipay_app.md

@ -0,0 +1,41 @@
# 微信/支付宝 In-App支付
---
* {domain}/micropay/v3/prepay
* vendor: alipay, wechatpay
* 微信支付App内支付需要提供微信开放平台应用appid,通过在微信平台注册应用获得这个appid
* 拿到 payInfo字符串之后,用于APP SDK拉起支付界面
### Request
```json
{
"amount": "12",
"currency": "USD",
"description": "a93b44fbc3080dfc331b56f22c9269ba",
"ipnUrl": "https://t.seapig.co/callback",
"merchantNo": "202333",
"note": "a93b44fbc3080dfc331b56f22c9269ba",
"reference": "a93b44fbc3080dfc331b56f22c9269ba",
"settleCurrency": "USD",
"storeNo": "301854",
"terminal": "APP",
"vendor": "alipay",
"verifySign": "84993ab3b8bc1d95debcd0d8b1ef2154"
}
```
### Response
```json
{
"result":
{
"payInfo": "_input_charset=\"UTF-8\"&currency=\"USD\"&forex_biz=\"FP\"&it_b_pay=\"120m\"&notify_url=\"http://cn2/appIpnCallbackNotify/2333/1854/302633699590287547/alipay-transaction-notify\"&out_trade_no=\"302633699590287547\"&partner=\"2088621891278974\"&payment_type=\"1\"&product_code=\"NEW_WAP_OVERSEAS_SELLER\"&secondary_merchant_id=\"202333\"&secondary_merchant_industry=\"5812\"&secondary_merchant_name=\"Yuansfer Sandbox\"&seller_id=\"2088621891278974\"&service=\"mobile.securitypay.pay\"&subject=\"yuansfer sandbox\"&total_fee=\"12.00\"&sign=\"Un5zyY4iGgfvHd%2FJnGl0nfrlt2NV6EVI74vJLZEFUBUs5B5TBVnVeGylWDCU1czVY2hgN2PMpCfFzgIVCgryftiFuuABHVBgLEJPVkF9GLEssWd%2BBxkhm%2B6BCdHNfVji%2FwVAYdvVOeuHMz8P%2Ft5d8O1ZY80iL4PDxXaJOZ1Agro%3D\"&sign_type=\"RSA\""
},
"ret_msg": " prepay success",
"ret_code": "000100"
}
```
Loading…
Cancel
Save