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

41 lines
1.6 KiB

  1. # 微信/支付宝 In-App支付
  2. ---
  3. * {domain}/micropay/v3/prepay
  4. * vendor: alipay, wechatpay
  5. * 微信支付App内支付需要提供微信开放平台应用appid,通过在微信平台注册应用获得这个appid
  6. * 拿到 payInfo字符串之后,用于APP SDK拉起支付界面
  7. ### Request
  8. ```json
  9. {
  10. "amount": "12",
  11. "currency": "USD",
  12. "description": "a93b44fbc3080dfc331b56f22c9269ba",
  13. "ipnUrl": "https://t.seapig.co/callback",
  14. "merchantNo": "202333",
  15. "note": "a93b44fbc3080dfc331b56f22c9269ba",
  16. "reference": "a93b44fbc3080dfc331b56f22c9269ba",
  17. "settleCurrency": "USD",
  18. "storeNo": "301854",
  19. "terminal": "APP",
  20. "vendor": "alipay",
  21. "verifySign": "84993ab3b8bc1d95debcd0d8b1ef2154"
  22. }
  23. ```
  24. ### Response
  25. ```json
  26. {
  27. "result":
  28. {
  29. "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\""
  30. },
  31. "ret_msg": " prepay success",
  32. "ret_code": "000100"
  33. }
  34. ```