我正在使用react-native-paytm npm包,但我得到404未找到错误,而调用paytm。startPayment(细节)方法。
runTransaction(checkSum) {
const details = {
mode: "Staging", // 'Staging' or 'Production'
mid: "CRmldF93384691886347",
industryType: "Retail",
website: "APPSTAGING",
channel: "WAP",
amount: "1.00", // String
orderId: "ORDERJEE00001", // String
email: "abc@gmail.com", // String
phone: "7777777777", // String
custId: "CUST0001", // String
checksumhash: checkSum, //From your server using PayTM Checksum Utility
callback: "https://securegw-stage.paytm.in/theia/processTransaction?ORDER_ID=ORDERJEE00001&MID=CRmldF93384691886347",
};
try{
paytm.startPayment(details);
}
catch(e){
Alert.alert(e)
}
}
1条答案
按热度按时间htrmnn0y1#
试试这个:@philly25/React-本地-付费TM
它使用最新的SDK,还支持最新的React Native。