elanic-tech / react-native-paytm

A react native wrapper for PayTM
11 stars 39 forks source link

when trying to run the Paytm its getting problem #4

Open shaikhussian opened 7 years ago

shaikhussian commented 7 years ago

I wrote the code like this for paytm, when click on button it will call the payNow function, In payNow function, the function will open the popup and the popup is automallically closing without showing any error, How to check the error here is my code `payNow(){

var details = {
  generationUrl: "https://cinealerts.com/webservices/paytm/xxx.php",
  validationUrl: "https://cinealerts.com/webservices/paytm/xxx.php",
  mid: "xxxxxxxxx", // Prod
  industryType: "Retail", //Prod
  website: "APP_STAGING", //prod
  channel: "WAP",
  amount: "5",
  orderId: "12345678",
  requestType: "DEFAULT",
  email: "mymailID",
  phone: "7777777777",
  theme: "merchant",
  custId: "9988344556",
};
paytm.startPayment(details);

}` Please give me suggestions that how to solve it.

mourice commented 7 years ago

If You are running in debug mode then you might need to set App Transport Security Settings Allow Arbitrary Loads to No

Suyashk44 commented 7 years ago

I have same issue for Android while running in debug mode. Please let me know how can I fix it. Any help will be appreciated. Thank you.