Creating the Request URL

You can get a complete URL address by combining the gateway information, parameters and their values, and the sign type and value with a character of &. For example, a request URL for the RSA sign type:

copy
partner="208861122157****"&seller_id="208861122157****"&out_trade_no="0811172929-1013"&subject="测试的商品"&body="该测试商品的详细描述"&total_fee="0.1"&notify_url="http://0ee96cd2.ngrok.io/notify.htm"&service="mobile.securitypay.pay"&payment_type="1"&_input_charset="utf-8"&currency=“USD”&forex_biz="FP"&sign="hUQHFJoHmPlNhq1BwE9LAsT0TiIYSN7rB4oKj%2FyKqtN7pJy6eyNd8PMfZH234brkcvbDxryiyqFzKA2RCGdTE8isC479lcvvLSMzxrtKJLagTm2w3z8xjReP0hsgXG2jmKKvdLjmA75HZXhFAMc3JlHsoiXRswY80pEKjmu76Rw%3D"&sign_type="RSA"

Note:

  • Gateway for the sandbox environment: https://mapi.alipaydev.com/gateway.do?
  • Gateway for the production environment: https://mapi.alipay.com/gateway.do?