(data, actions)
| 65 | }, |
| 66 | // onAuthorize() is called when the buyer approves the payment |
| 67 | onAuthorize (data, actions) { |
| 68 | // Pass the payment info along, so we can tell the server to execute it |
| 69 | return actions.payment.get().then(payment => onPaymentComplete(payment)) |
| 70 | } |
| 71 | }, options.payPalOptions), buttonContainerID) : undefined |
| 72 | } |
| 73 |