Shopper manual login

A shopper should log in to the RKFL system to make and track the payment. The RKFL system provides a seamless login experience with shopper SSO login.

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

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/signin

Headers

NameTypeDescription

Content-Type*

String

application/json

Request Body

NameTypeDescription

encryptedReq

String

Encrypted string

{
  "ok": true,
  "result": {
    "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRiNmJkMTZhLTIyZjUtNDExYS1hN2U0LTEwY2Q3ODcxMzU1YiIsImlhdCI6MTY1NTk4MjQ4MCwiZXhwIjoxNjU1OTg0MjgwfQ.aKnfIs_KnRSASZC8C1GYJCLZsA7pbhPc8QX9ql7Xf08",
    "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRiNmJkMTZhLTIyZjUtNDExYS1hN2U0LTEwY2Q3ODcxMzU1YiIsImlhdCI6MTY1NTk4MjQ4MCwiZXhwIjoxNjU1OTg0MjgwfQ.aKnfIs_KnRSASZC8C1GYJCLZsA7pbhPc8QX9ql7Xf08",
    "status": 1
  }
}

Last updated