react-native-ipay88-sdk icon indicating copy to clipboard operation
react-native-ipay88-sdk copied to clipboard

Not working when amount more then 1

Open ForestChong opened this issue 6 years ago • 1 comments

Hi,

The payment gateway is not working when I tried to change the amount from "1.00" to "2.00", but is working with amount "1.00", even I try to change other currency such like "USD", "RMB", it not working too. any idea?

parameter:

  pay = () => {
  try {
    const data = {};
      data.paymentId = "2"; // refer to ipay88 docs
      data.merchantKey = merchantKey;
      data.merchantCode = merchantCode;
      data.referenceNo = "1234565";
      data.amount = "2.00";
      data.currency = "MYR";
      data.productDescription = "Payment";
      data.userName = "MCD SDN BHD";
      data.userEmail = "[email protected]";
      data.userContact = "0123456789";
      data.remark = "me";
      data.utfLang = "UTF-8";
      data.country = "MY";
      data.backendUrl = "http://sample.com";
      const errs = Pay(data);
      if (Object.keys(errs).length > 0) {
        console.log(errs);
      }
    } catch (e) {
      console.log(e);
    }
  };

ForestChong avatar Dec 14 '18 04:12 ForestChong