IFrame

Environment

EnvURLDescription
Testhttps://iframe.hipay.world
STGNone
ProdNot published

Merchant Authorization and Authentication Process


iframe front-end docking

Authorization

iframe authorization URL

https://iframe.hipay.world/en-US/alogin/?key=MerchantAPIKey&ticket=MerchantAuthenticationMark

Request method

GET

Request Parameters

FieldsData TypesillustrateEffect
keyStringRequesting an API KEYIdentify and distinguish white label users
ticketStringMerchant authentication markMerchant self-certification or authentication identification
en-USStringLanguage. The URL does not need to carry a language identifier. The default is en-US.Supported languages:zh-CN/en-US

iframe routing

illustrate

iframe supports loading pages individually, but the key and ticket need to be carried on the URL. When loading a single page, the authorization prompt will appear on the current interface. After authorization, it can be used normally.
Example:https://iframe.hipay.world/aLogin?key=d1f1a482-6aba-4b6d-bcfe-1050c8cbabfc&ticket=13

Module Routing

Log in

Card

Application card list:https://iframe.hipay.world/card/list

Address


iframe work flow

Card Opening Work Flow:

  • Register/Login (Registered Customer):API
  • Card List:iframe
  • Card Details:iframe
  • Card Application:iframe
  • Open card payment:API
  • Card opening information:iframe
  • Phone number:API
  • Mail:API
  • Cardholder address:iframe
  • Submit for review:iframe
  • Card assets:iframe

Top Up Work Flow:

  • Register/Login (Registered Customer):API
  • My Cards:iframe
  • Recharge Application:iframe
  • Recharge payment:API
  • Recharge submission completed:iframe

Merchant Authorization

Merchants need to provide a self-authentication interface, which is configured on the Broker management platform.

Location:

Settings->Access Management->Authorized Addresses

Implement the main process:

  • iframe requests the merchant based on the set address
  • Merchants use the merchant authentication identification Ticket to perform self-authentication and authentication:
    • If rejected, an error is returned directly
    • If it passes, call the "Register Customer" in the OpenApi interface to perform UPay authentication
    • Registering customer service is done by mobile phone number or email address in the default customer group
  • Once authentication is completed, the temporary ticket issued by UPay is returned to the merchant. The merchant needs to return the temporary ticket information to the merchant user of the IFrame.
  • Merchant users exchange temporary tickets for authentication tokens

Authorization interface

Request method

POST

Request Parameters

FieldsData TypesillustrateEffect
ticketStringMerchant authentication markMerchant self-certification or authentication identification
{
    "ticket": "eff46b37-ee08-473e-a94b-c8b05069320b"
}

Return

FieldsData TypesillustrateEffect
ticketStringUPay temporary billUsed to exchange IFrame for Token

The merchant successfully authenticates and returns a temporary UPay ticket:

{
    "data": {
        "ticket": "eff46b37-ee08-473e-a94b-c8b05069320b"
    },
    "code": 0,
    "msg": "success"
}

Returned when merchant authentication is rejected or failed

{
    "data": null,
    "code": 500,
    "msg": "fail"
}