Suraj-Tiwari / react-native-payumoney

React Native Payumoney (Android/IOS)
MIT License
18 stars 9 forks source link

When click on payment button got this error #36

Closed Shaileshr777 closed 4 years ago

Shaileshr777 commented 4 years ago

PAYU_PAYMENT_FAILED{error:true}

This is my code fetch('http://115.124.127.118/~devfds/covid19_app_api/hash.php', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ key: key, txnid: txid, amount: amount, productinfo: productId, firstname: name, email: email }), }) .then((response) => response.text()) .then((hash) => {

    console.log("Shailesh repos"+hash)
    let options = {
        amount: amount,
        txid: txid ,
        productId: productId,
        name: name,
        email: email,
        phone: phone,
        id: id,
        key: key,
        surl: surl,
        furl: furl,
        sandbox: sandbox,
        hash: hash
    };
    console.log(options);
    PayuMoney.pay(options).then((d) => {
        console.log(d); // WIll get a Success response with verification hash
    }).catch(e => {
        console.log(e); //In case of failture
    });
})
Shaileshr777 commented 4 years ago

Getting toast message 'Some error occur'

Suraj-Tiwari commented 4 years ago

38 version 1.0.0 released all known issue fixed