Start a new topic

Hosted checkout pages in a webview

 Has anyone had any luck with using a Chargebee hosted page in a cordova webview?

$scope.chargebeeInstance.openCheckout({
    hostedPage: () => {
        return $.ajax({
            url: `/api/v3/chargebee_hosted_pages`,
            data: data,
            method: 'POST'
        });
    },
    success: (hostedPageId) => {
        // success callback
    }
});
            });

 

That code will open an in app browser window where it tries to load the hosted page.  However, the hosted page never loads.


The console reports a "TypeError: undefined is not an object (evaluating 'this.window.location.replace')" error.


Has anyone figured out a way to make it load?

 

Login or Signup to post a comment