juspay / juspay/ec-react-native-library

errorMessage":"[merchantAccount] cannot be null

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I've integrated everything according to the docs but I get a success response saying 'errorMessage":"[merchantAccount] cannot be null'.

let nbPayload = {
opName: 'nbTxn',
paymentMethodType:'NB',
paymentMethod:'NB_SBI',
redirectAfterPayment: 'true',
format: 'json',
};
//Here payload format is specified for netbanking transaction. For different types of payload types
//for other operations, refer https://developer.juspay.in/docs/expresscheckout-sdk

let requestPayload = {
baseParams: {
merchant_id: 'My merchant Id,
client_id: 'merchantId_android',
order_id:'12344',
amount: '10', //eg: "1.00"
customer_id: 'ABC_123',
customer_email: 'test@gmail.com',
customer_phone_number: '78XXXXXXXX',
environment: 'sandbox',
},
serviceParams: {
service: 'in.juspay.ec',
session_token: 'pass client auth token',
endUrls: [], //eg: ["https://www.reload.in/recharge/", ".*www.reload.in/payment/f.*"]
payload: nbPayload,
},
customParams: {}, //customParams are optional key value pairs.
};

EcReactNativeLibrary.startPayment(
JSON.stringify(requestPayload),
(successResponse) => {
console.log(successResponse, 'success');
},
(errorResponse) => {
console.log(errorResponse, 'error');
},
);

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.