I am working in an application which needs payment gateway. I have tried manything to integrate payment gateway. But all was unsuccessful. I tired paypal payment gateway.
https://github.com/paypal/PayPal-Cordova-Plugin which was also failed. I tried the below solution. Not working. Is there any other way to integrate paypal payment gateway with Ionic in Angularjs ?
looks like you are new to whole hybrid app development thing. Paypal’s documentation is pretty straight forward and you just need to make it in angular way.
The best way is to use a website for taking payment if you can’t understand the hybrid app and are pressed for time. call that website on button click in your app and it will open inappbrowser.
On success close inappbrowser, and call an api endpoint via $http and do the rest of the things.
I followed the way as you mentioned. But the problem is sending data from app to website. I tried to submit form to external link, But since I can send data only in json format sending data to payment gateway was not possible.
I have something link this,
On submitting this form, It should send values to www.example.com/api. Making this happen in angularjs is little tough. I used $http.post to send data. But it sends in json format, Payment gateway is not accepting the values.