You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(i) Firstly, can I check with you guys whether the npm package is up to date? The published date is about a year back whereas changes in the github page are a month back. I am following the guidance in the github page. I assume they will be applicable to the published npm package. Please confirm
(ii) I have used the package as follows::
a) I have the following method in my component
runTransaction = (amount, custId, orderId, phone, email, checkSum) => {
const callbackUrl = ${paytmConfig.CALLBACK_URL};
const details = {
mode: "Staging", // 'Staging' or 'Production'
mid: paytmConfig.MID,
industryType: paytmConfig.INDUSTRY_TYPE_ID,
website: paytmConfig.WEBSITE,
channel: paytmConfig.CHANNEL_ID,
amount, // String
orderId, // String
email, // String
phone, // String
custId, // String
checksumhash: checkSum, //From your server using PayTM Checksum Utility
callback: callbackUrl
};
paytm.startPayment(details);
};
I also have the following in my component, as shown in the guide
b) I am generating the checksum from the backend using the paytm checksum kit and I can confirm that the checksum properly returns a value
c) I have double checked and triple checked the parameter values for my app's paytm configuration. They are correct.
d) My concern is the mismatch between the names of the keys used in the guide (for example amount) and the names given in the paytm page (TXN_AMOUNT). Is my concern legit?
e) am I missing anything in the creation of the details object?
The problem is that I am getting an oops page from paytm. Please advise.
The text was updated successfully, but these errors were encountered:
hi
I could use some help on these issues.
(i) Firstly, can I check with you guys whether the npm package is up to date? The published date is about a year back whereas changes in the github page are a month back. I am following the guidance in the github page. I assume they will be applicable to the published npm package. Please confirm
(ii) I have used the package as follows::
a) I have the following method in my component
runTransaction = (amount, custId, orderId, phone, email, checkSum) => {
const callbackUrl =
${paytmConfig.CALLBACK_URL}
;const details = {
mode: "Staging", // 'Staging' or 'Production'
mid: paytmConfig.MID,
industryType: paytmConfig.INDUSTRY_TYPE_ID,
website: paytmConfig.WEBSITE,
channel: paytmConfig.CHANNEL_ID,
amount, // String
orderId, // String
email, // String
phone, // String
custId, // String
checksumhash: checkSum, //From your server using PayTM Checksum Utility
callback: callbackUrl
};
paytm.startPayment(details);
};
I also have the following in my component, as shown in the guide
componentWillMount() {
DeviceEventEmitter.addListener("PayTMResponse", this.onPayTmResponse);
}
onPayTmResponse = response => {
console.log(response);
};
b) I am generating the checksum from the backend using the paytm checksum kit and I can confirm that the checksum properly returns a value
c) I have double checked and triple checked the parameter values for my app's paytm configuration. They are correct.
d) My concern is the mismatch between the names of the keys used in the guide (for example amount) and the names given in the paytm page (TXN_AMOUNT). Is my concern legit?
e) am I missing anything in the creation of the details object?
The problem is that I am getting an oops page from paytm. Please advise.
The text was updated successfully, but these errors were encountered: