Shopper manual signup

A shopper should register to the RKFL system to proceed with the payment. The RKFL system provides a seamless register & login experience with shopper SSO login.

In any case, if SSO is not successful, the RKFL supports a manual signup process. The merchant website should display a signup form similar to the attached screenshot and ask the shopper to enter the details and register.

In the manual registration process, the shopper must verify the email id.

The register API accepts data in an encrypted format. The encryption algorithm is RSA, and the encryption key is the merchant's "Public Key."

// The key "encryptedReq" should generate from the below way.
export const encryptedReq = async (toEncrypt, publicKey) => {
  const buffer = Buffer.from(toEncrypt);
  const encrypted = crypto.publicEncrypt(publicKey, buffer);
  return encrypted.toString('base64');
};

POST /auth/signup

Headers

Request Body

{
  "ok": false,
  "statusCode": 400,
  "data": {
    
  },
  "message": "Email is already in use"
}

Last updated