Ionic 4收到Instamojo付款网关响应“ JSON错误”

时间:2019-08-03 13:21:04

标签: javascript ionic-framework instamojo

在我的离子项目中,我使用instamojo作为付款网关。我还在正在运行的ionic 3项目中使用了instamojo,但在ionic 4中却给出了响应“ JSON错误”。

我尝试了以下代码,并且
得到响应:付款失败:“ JSON错误”

function this.instamojoClient.payNow(data).then(response => {
alert("Payment complete: " + JSON.stringify(response));
}).catch(err => {
alert("Payment failed: " + JSON.stringify(err));
});

我想要JSON格式的响应。我缺少什么。

0 个答案:

没有答案
相关问题