<Back to the list

How to generate a URL to evoke Allipay Wallet

For the interface alipay.dut.customer.agreement.page.sign, follow the steps below to invoke Alipay Wallet.

  1. Before the merchant can open the sign page, the merchant must install Alipay Wallet. If the following characters exist, Alipay Wallet is installed successfully:

    • iOS: scheme: alipays://
    • Android: com.eg.android.AlipayGphone in package name
  2. Call the interface (alipay.dut.customer.agreement.page.sign) to generate an agreement URL:

    https://openapi.alipaydev.com/gateway.do?_input_charset=UTF-8&access_info={"channel":"ALIPAYAPP"}&external_sign_no=123456789-1-52188048&notify_url=http://sandbox.hq.agoda.com/PaymentNotification-qa/AlipayBNPL/SaveNotification&partner=2088621880535422&product_code=GENERAL_WITHHOLDING_P&return_url=http://devto.payment.webservices.agoda.local/paypal/Success.aspx&sales_product_code=FOREX_GENERAL_WITHHOLDING&scene=INDUSTRY|HOTEL&service=alipay.dut.customer.agreement.page.sign&sign=2198439006194efadc0cc81501ffeccf&sign_type=MD5

  3. Then encode the URL:

    https%3A%2F%2Fopenapi.alipaydev.com%2Fgateway.do%3F_input_charset%3DUTF-8%26access_info%3D%7B%22channel%22%3A%22ALIPAYAPP%22%7D%26external_sign_no%3D123456789-1-52188048%26notify_url%3Dhttp%3A%2F%2Fsandbox.hq.agoda.com%2FPaymentNotification-qa%2FAlipayBNPL%2FSaveNotification%26partner%3D2088621880535422%26product_code%3DGENERAL_WITHHOLDING_P%26return_url%3Dhttp%3A%2F%2Fdevto.payment.webservices.agoda.local%2Fpaypal%2FSuccess.aspx%26sales_product_code%3DFOREX_GENERAL_WITHHOLDING%26scene%3DINDUSTRY%7CHOTEL%26service%3Dalipay.dut.customer.agreement.page.sign%26sign%3D2198439006194efadc0cc81501ffeccf%26sign_type%3DMD5

  4. Connect the above URL to alipays://platformapi/startapp?appId=20000067&url=

    alipays://platformapi/startapp?appId=20000067&url=https%3A%2F%2Fopenapi.alipaydev.com%2Fgateway.do%3F_input_charset%3DUTF-8%26access_info%3D%7B%22channel%22%3A%22ALIPAYAPP%22%7D%26external_sign_no%3D123456789-1-52188048%26notify_url%3Dhttp%3A%2F%2Fsandbox.hq.agoda.com%2FPaymentNotification-qa%2FAlipayBNPL%2FSaveNotification%26partner%3D2088621880535422%26product_code%3DGENERAL_WITHHOLDING_P%26return_url%3Dhttp%3A%2F%2Fdevto.payment.webservices.agoda.local%2Fpaypal%2FSuccess.aspx%26sales_product_code%3DFOREX_GENERAL_WITHHOLDING%26scene%3DINDUSTRY%7CHOTEL%26service%3Dalipay.dut.customer.agreement.page.sign%26sign%3D2198439006194efadc0cc81501ffeccf%26sign_type%3DMD5

  5. The merchant can open the above URL with the client App to invoke Alipay Wallet, and then access the sign page.

客服小机器人

NEED HELP ?