Closed naveenvignesh5 closed 6 years ago
I am also facing this error? Is any thing need to be updated ?
@naveenvignesh5 bro did u find the solution for this?
Do you have test credentials? or using one provided from payumoney dashboard.
please try with there credentials https://github.com/Suraj-Tiwari/react-native-payumoney/issues/2#issuecomment-409661804
// are you sure about this? this snippet in your comment looks invalid.
const options = {
amount: 99.99,
productId: 'test',
**txid : txid,** **//<- here it should be like this**
name: 'test',
email: 'test@gmail.com',
phone: '9444772154',
id: '6469569',
key: 'tdDbpjSr',
surl: 'https://www.payumoney.com/mobileapp/payumoney/success.php',
furl: 'https://www.payumoney.com/mobileapp/payumoney/failure.php',
sandbox: true,
hash: hashRes.hash, // 85c0452ac17d651aca2d2b8a3fad9b9bfd0f2a956cab72c7281ee9ab3a0b4ac3f61691da24133835e8ff78d0f8c63906e2f594e4fae0a76e515ce8c22a2b0b55
};
That is es6 notation. I wrote it like that to avoid lint. I tried with the way you told me. Still I am getting this error.
@Suraj-Tiwari your custom options seems to be working where hardcoded hash is present but not my sandbox credentials.
@vijay2330 No I was not able to find a solution.
@Suraj-Tiwari i tried ur options code... it is working now.... let me confirm once by adding my own credentials from dashboard
@Suraj-Tiwari Using my own credentials is not working.... But using the test credentials... app works perfectly.I got the credentials from dashboard
@naveenvignesh5 own credentials is not working as u mentioned
Because those credentials are for web testing. For android you have to ask them.
set Sandbox:false to test out with your credentials in production.
I asked payumoney about this..... They replied as below...
Please change the dependency to the below as: compile 'com.payumoney.sdkui:plug-n-play:1.4.4’
Will it work for the linked react-native module
By adding compile 'com.payumoney.sdkui:plug-n-play:1.4.4’ ... Clicking on Make payment button closes the app
You don't have to change dependency. If You can simply proceed with my test credentials set Sandbox to false and check it for production.
@Suraj-Tiwari its not working..... Changing sandbox to false throws same error....
@vijay2330 @naveenvignesh5 confirm if you have approval.
[
"amount" => $amount,
"txid" => $txnid,
"productId" => $productinfo,
"name" => $name,
"email" => $email,
"phone" => $r->mobile,
"id" => $id,
"key" => $key,
"surl" => "", //url
"furl" => "", //url
"sandbox" => false,
"hash" => $hash
]
this is the data (in json format) i'm passing to sdk in app generated on server. (Production app)
@Suraj-Tiwari can u please explain about surl and furl and what url need to point this.
in my Case both of them are pointing to hash generating link
@Suraj-Tiwari My backend php file url is http://192.168.1.72/sanjai_nidhi_backend/api.php... In this endpoint only the hash making process is executing...... I tried to give this url in both surl and furl but same error is throwing
try checking logs in logcat.
My PHP Code
React Native Module