Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
4,752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. paypal.Buttons({
  2. createSubscription: function(data, actions) {
  3. return actions.subscription.create({
  4. 'plan_id': $('#hidden_plan').val()
  5. });
  6. },
  7. onApprove: function(data, actions) {
  8. console.log(data);
  9. },
  10. onError: function (err) {
  11. // Show an error page here, when an error occurs
  12. console.log(err);
  13. }
  14. }).render('#paypal-button-container');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement