如何解决成功无法执行的回叫

时间:2019-05-27 06:52:31

标签: ionic-framework ionic3

我正在将支付网关集成到我的ionic 3项目中。付款成功后,具有成功回调功能。但是在successcallback函数内部,我只能警告结果,而其他任何方法都无效。

RazorpayCheckout.open(options, this.successCallback, this.cancelCallback);


//this works
successCallback(payment_id)
  {
    alert(pament_id);
  }

//this not working
successCallback(payment_id)
  {

     let loading = this.loadingController.create({
     spinner: 'circles'
  });

  loading.present();


  this.update[ayment(payment_id);

  loading.dismiss();

  }

1 个答案:

答案 0 :(得分:1)

使用arrow functions,以便正确绑定<IfModule mod_ssl.c> <VirtualHost *:443> ServerName other-40.umwelt-campus.de SSLCertificateFile /etc/apache2/ssl/nextcloud.crt SSLCertificateKeyFile /etc/apache2/ssl/nextcloud.key # Encoded slashes need to be allowed AllowEncodedSlashes NoDecode # Container uses a unique non-signed certificate SSLProxyEngine On SSLProxyVerify None SSLProxyCheckPeerCN Off SSLProxyCheckPeerName Off # keep the host ProxyPreserveHost On # static html, js, images, etc. served from loolwsd # loleaflet is the client part of LibreOffice Online ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0 ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet # WOPI discovery URL ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0 ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery # Main websocket ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon # Admin Console websocket ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws # Download as, Fullscreen presentation and Image upload operations ProxyPass /lool https://127.0.0.1:9980/lool ProxyPassReverse /lool https://127.0.0.1:9980/lool </VirtualHost> 的上下文。

this