Skip to main content

Posts

Showing posts from November, 2017

Ionic 3 Payment gateway integration(HDFC)

Ionic payment gateway provides a payment transaction by the transfer of information between mobile application and the acquiring bank. Below are the steps followed to integrate bank payment gateway with ionic3 application:- Step1:- Install the Cordova and Ionic Native plugins $ ionic cordova plugin add cordova-plugin-inappbrowser $ npm install –save @ionic-native/in-app-browser Step2:- Get the hash key (provides added security to the payment) from server Step3:-Create html page in WWW folder(redirect.html). This html page should contain an empty form with an id. We use this html page to submit to the payment gateway. Step4:-From form, load string to html tags, it should be in the format of how we submit to the payment gateway.  Step5:-Import inappbrowser  to app.module.ts import { InAppBrowser } from '@ionic-native/in-app-browser' ; and include it in @NgModule’s providers array. Step6:-Import inappbrowser in checkout page and add this in const