UNPKG

@stylusapparel/opv3-merchant-api-nodejs

Version:

This is the official NodeJs wrapper for connecting to the StylusOP API V3

30 lines 1.02 kB
{ "MOCK_SECRET_TOKEN": "YOUR_SECRET_TOKEN", "MOCK_MERCHANT_NAME": "MERCHANT_NAME", "MOCK_MERCHANT_ID": "MERCHANT_ID", "OAUTH_TOKEN_RESPONSE": { "success": true, "message": "Access Token generated successfully", "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaG*************************************************************************", "expiresIn": 3600, "expireDate": "2025-01-05T15:01:28.000Z", "tokenType": "bearer" }, "IS_TOKEN__VALID_SUCCESS_RESPONSE": { "message": "Token is valid", "merchantId": 381395, "role": "merchantApiToken", "merchantName": "merchanttest", "iat": 1738764088, "exp": 1738767688, "expireDate": "2025-01-05T15:01:28.000Z" }, "IS_TOKEN__VALID_ERROR_RESPONSE": { "success": false, "message": "invalid token" }, "IS_TOKEN__VALID_EXPIRE_ERROR_RESPONSE": { "success": false, "message": "jwt expired" } }