Security

Pagsmile uses hybrid encryption (AES + RSA) for secure communication.

Request Signature

1、Request header

Name
Type
Description

Content-Type*

string

application/json; chartset=UTF-8

2、Request body

{
    "app_id": "2017051914172236111",
    "partner_id": "000000000000001",
    "timestamp": "2011-09-23 04:24:03",
    "version": "1.0",
    "request_id": "bO8lENHnboElE",
    "sign_type": "RSA",
    "random_key": "OvUp0Z7zhLfYdBR1lOKLfYdBR1lOKLfYdBR1lOK", //need to be encrypted
    "biz_data": "Z7zhLfYdBR1lOKLfYdBR7zhLfYdBR1lOKLfYdBR" //need to be encrypted
}

3、Signature

randomKey: A randomly generated 16-byte AES key, encrypted with Pagsmile RSA public key (2048-bit).

Pagsmile RSA public key is available in your app’s configuration of the Pagsmile Dashboard.

biz_Data: Encrypted data, secured with the randomly generated AES key.

Response Signature

1、Response body

2、Signature

random_key: Decrypt using the Merchant RSA private key.

The response is encrypted with your Merchant RSA Public Key. Please ensure that you have updated the Merchant RSA Public Key in your app’s configuration of the Pagsmile Dashboard.

data: Use the decrypted AES key to decode the message content.

Example

Last updated

Was this helpful?