(data, actions)
| 18 | } |
| 19 | |
| 20 | const createOrder = (data, actions) => actions.order.create({ |
| 21 | purchase_units: [ |
| 22 | { |
| 23 | amount: { |
| 24 | currency_code: 'USD', |
| 25 | value: props.amount |
| 26 | } |
| 27 | } |
| 28 | ] |
| 29 | }); |
| 30 | |
| 31 | const onApprove = (data, actions) => actions.order |
| 32 | .capture() |