将PayU资金整合到Ionic + Cordova混合应用程序中 [英] Integrating PayU money to Ionic + Cordova Hybrid App

查看:99
本文介绍了将PayU资金整合到Ionic + Cordova混合应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我如何设置或呈现成功网址到我的离子应用程序。
当我将PayU资金整合到Ionic应用程序时,它需要在完成付款后成功Url和Failure Url,它会成为成功网址,但它不会回到Ionic App。

please help me how to set or render success url to my ionic app. when i integrating PayU money to Ionic app it requires Success Url and Failure Url after completion of payment it render into success url but it's not back to Ionic App.

<form name="sendParam" method="post"    action="https://test.payu.in/_payment.php">
    <input type="text" name="key" value="P3kHif" />
    <input type="text" name="txnid" value="mdd0123" />
    <input type="text" name="amount" value="100" />
    <input type="text" name="productinfo" value="oxygenconcentrator" />
    <input type="text" name="firstname" value="test" />
    <input type="text" name="email" value="test@gmail.com" />
    <input type="text" name="phone" value="9999999999" />
    <input type="text" name="surl" value="http://example.com" />
    <input type="text" name="Furl" value="http://example.com/about-us/" />
    <input type="text" name="Hash" value="9a4c95b065ae294414e6a5b0b6e8e5d1a2ebf26074228eac6ff7c7d739c9cd4d021a9f70af8860ac369b1ccecfdaa60ba5839ee9dc1fd41e2848a3813677d520"/>
    <input type="submit" value="enter"/>
 </form >

来自PayUmoney的响应仅采用HTML格式,它没有任何JSON对象格式。我只是按照以下链接 PayU Money Rest API

and response comes from PayUmoney is only in HTML format it doesn't have any JSON Object format. Just i followed the following Link PayU Money Rest API

推荐答案

Payumoney没有混合应用程序的sdk。我们需要使用Cordova inapp浏览器来实现这一目标。

Payumoney does't have sdk for Hybrid applications. We need to use Cordova inapp browser to achieve this.

步骤1:创建Payumoney帐户并获取沙箱详细信息。

Step 1 : Create Payumoney Account and get sandbox details.

步骤2:安装Cordova inapp浏览器

Step 2: Install Cordova inapp browser

第3步:创建付款网址

步骤4:在服务器中创建成功和失败网址并添加这些网址您的付款页

Step 4 : Create success and failure url in server and add these urls in your payment page

第5步:在您的inapp浏览器中运行您的付款网址。

Step 5: Run your payment url in your inapp browser.

多数民众赞成。它将执行付款流程并将状态发送给给定的成功和失败URL。

Thats it. It will do a payment process and send a status to given success and failure url.

这里您可以找到离子中支付网关集成的代码。

Here you can find a code for payment gateway integration in ionic.

这篇关于将PayU资金整合到Ionic + Cordova混合应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆