Redirecting back from php payment response url to phonegap app

  • 1
  • Question
  • Updated 4 years ago
Hi ,

I have integrated form with hidden fields which consist of all required field for processing payment , and this form got action attribute,when I click on submit it is redirecting to payment url with in the app ,after The payment process completed it will be redirected to the redirected url ,at this point how can I redirect back to the application from external url

please find the sample code attached below

Submit

$("#submit_order1").on("click",function(){
var data = {
"user_id":"59",
"txn_amount":"100"
}
$.ajax({
type: "POST",
url: "http://www.kisanmanch.com/webservices...",
data: data,
dataType : "json",
success: function (msg) {
var html="";
if(msg.status == 1){
window.localStorage.setItem("redirect_payment_url",msg.data.ME_ReturnURL);
html += "";
$("#payment_page").html(html);

}
},
error:function(error){
console.log("error:"+error);
}
});
});

I also in app browser but it is showing 403 forbidden error
Photo of Durgavenkat Narayana Velagala

Durgavenkat Narayana Velagala

  • 1 Post
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Durgavenkat
Since this is your first post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.

Thanks
Jesse