Hello,
could anyone share his experience about using billing fragment on Ionic Cordova plugin?
We are using the 1.2.29 version and, suddendly, callbacks stopped to work.
Although change plan operation went well, code is not executed neither for success callback nor error callback (in the sample snippet we gave to you, logs are not printed).
Below you can see a snippet of the code we are using:
$scope.launchBilling = function(planId){
console.log("launchBilling");
Poynt.billing.Init(function(data) {
Poynt.billing.launchBilling(function(data){
// Success
console.log('Success');
/* other actions, included refresh page */
}, function(error) {
console.log("Error during plan change");
window.alert(error);
}, {'planid': planId, 'replace': true});
}, function(err) {
window.alert(err);
});
};
Any suggestion willl be appreciated.
Thanks,
WhatsIn dev team