Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49259

How to do alipay in ionic 4

$
0
0

@ice174 wrote:

I am new in ionic 4. I want to add alipay plugin in my ionic apps. I saw all the tutorial do like this only :

import { Alipay } from '@ionic-native/alipay/ngx';

constructor(private alipay: Alipay) {

//alipayOrder is a string that has been generated and signed by the server side.
this.alipay.pay(alipayOrder)
   .then(result => {
      console.log(result); // Success
   })
   .catch(error => {
      console.log(error); // Failed
   });

}

But this only show the loading say openning the alipay but do not open the alipay page to pay. What I need to change inside the code? I want to send the total payment to use the alipay do payment. Anyone can help me?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>