myussufz / react-native-ipay88-sdk

React Native for integrating with iPay88 payment gateway's mobile SDK
18 stars 17 forks source link

Not working when amount more then 1 #6

Open ForestChong opened 5 years ago

ForestChong commented 5 years ago

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 = "test@gmail.com";
      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);
    }
  };
nikuh commented 5 years ago

Hi.

I think if merchant Key and merchant code is for test now, ipay88 allows to send only 1.00 in test account.

Once merchant account is activated as live status, they will allowed the amount more than 1.

Also I have one issue in i88 payment getway integrating. (Issue4)

Could you tell me about the mobile merchant key and code is different with web one.?

How did you get the merchant key and code from ipay88.?

Best Regards