Skip to content

Commit 1ad47b6

Browse files
authored
Fix: Broken paypal button fixed (#3000)
1 parent c250f08 commit 1ad47b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/paypal-button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export default Component.extend({
2929
shape : 'pill' // pill, rect
3030
},
3131

32-
payment() {
32+
payment: () => {
3333
return this.loader.post(`orders/${order.identifier}/create-paypal-payment`, createPayload)
3434
.then(res => {
3535
return res.payment_id;
3636
});
3737
},
3838

39-
onAuthorize(data) {
39+
onAuthorize: data => {
4040
// this callback will be for authorizing the payments
4141
let chargePayload = {
4242
'data': {

0 commit comments

Comments
 (0)