Skip to main content

PIN-Related

If you are not PCI-compliant, it is recommended to use the "EastPay® Payment Gateway mobile SDK" for PIN-related operations.

PIN format

PIN format data total 8 bytes, it hex data such as “1614725812345678”. the first digit is fixed 1 the 2rd digit is PIN length, such as 6 the next data is PIN, its length is the PIN length, such as 147258 the last data is padding data, such as 12345678, it should be a random number. encryption algorithm: RSA

GeneratePublicPinKey

This API is used to get the public key to protect cardholder’s PIN

Request:

No body of this request.

Response:

Data ElementField NameDescriptionFormatLengthM/ORemark
1Pin Key IdpinKeyIdPin Key IdStringMaximum 8 characterRequired
2Pin KeypinKeyPin KeyStringMaximum 4096 characterRequiredRSA Public Key

PINReset

This API is used to reset the personal identification number (PIN) of a physical card.

Request:

Data ElementField NameDescriptionFormatLengthM/ORemark
1Card Token NumbercardTokenCard Token NumberStringMaximum 19 charactersConditional
2Card NumbercardNumberCard NumberStringMaximum 19 characterConditional
3Pin Key IdpinKeyIdPin Key IdStringMaximum 8 characterRequired
4New PIN Encrypted by KeynewCardPinNew PIN Encrypted by KeyStringMaximum 4096 charactersRequired

Response:

None.
Only response public header, please refer to the response code in header.

PINChange

This API is used to change the personal identification number (PIN) of a physical card.

Request:

Data ElementField NameDescriptionFormatLengthM/ORemark
1Card Token NumbercardTokenCard Token NumberStringMaximum 19 charactersConditional
2Card NumbercardNumberCard NumberStringMaximum 19 characterConditional
3Pin Key IdpinKeyIdPin Key IdStringMaximum 8 characterRequired
4PIN Encrypted by KeycardPinPIN Encrypted by KeyStringMaximum 4096 charactersRequired
5New PIN Encrypted by KeynewCardPinNew PIN Encrypted by KeyStringMaximum 4096 charactersRequired

Response:

None.
Only response public header, please refer to the response code in header.

PINVerify

This API is used to verify the personal identification number (PIN) of a physical card.

Request:

Data ElementField NameDescriptionFormatLengthM/ORemark
1Card Token NumbercardTokenCard Token NumberStringMaximum 19 charactersConditional
2Card NumbercardNumberCard NumberStringMaximum 19 characterConditional
3Pin Key IdpinKeyIdPin Key IdStringMaximum 8 characterRequired
4PIN Encrypted by KeycardPinPIN Encrypted by KeyStringMaximum 4096 charactersRequired

Response:

None.
Only response public header, please refer to the response code in header.