Paypal-checkout-components: Integrating checkout.js with AngularJS

Created on 6 Dec 2016  路  7Comments  路  Source: paypal/paypal-checkout-components

I followed the implementation tutorial to use the checkout.js (v.4) in conjunction of AngularJS but i keep getting this:
Error: $injector:modulerr Module Error Failed to instantiate module paypal-button due to: Error: [$injector:nomod] http://errors.angularjs.org/1.5.9/$injector/nomod?p0=payp...

Any suggestions?

outdated

Most helpful comment

@marcocristalli I've pushed a fix, please make sure your browser cache is cleared and try again.

There's a working demo at https://github.com/paypal/paypal-checkout/blob/master/demo/angular.htm for reference.

All 7 comments

Now keep saying:
Error: [paypal-button] No context options available for render
Even if i added the props needed to my $scope

Yeah, I've managed to repro this. Seems to be a regression in the angular driver. Should be a straightforward fix, I'll let you know shortly.

Thanks a lot!! ;)

@marcocristalli I've pushed a fix, please make sure your browser cache is cleared and try again.

There's a working demo at https://github.com/paypal/paypal-checkout/blob/master/demo/angular.htm for reference.

Awesome! Now it works, thanks a lot! ;)

@bluepnume its working fine but one issue here when payment successful all object are undefined
mean here Router undefined
this.router.navigate(['/confirmation', this.Order.id]);

>  onAuthorize: function(data, actions) {
>                     // Optional: display a confirmation page here
>                     return actions.payment.execute().then(function() {
>                         // this.router.navigate(['/confirmation', this.Order.id]);
>                     });
>                 }

Can you please help what a problem here why router object show undefined?

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Soulpancake000 picture Soulpancake000  路  5Comments

webdeb picture webdeb  路  3Comments

gastonyelmini picture gastonyelmini  路  3Comments

domtripodi picture domtripodi  路  5Comments

Wr4i7h picture Wr4i7h  路  4Comments