cocoastorm / vue-paypal-checkout

A simple Vue.js wrapper component for paypal-checkout
MIT License
153 stars 66 forks source link

Capturing the paypal events ? #17

Closed ghost closed 6 years ago

ghost commented 6 years ago

I tried to capture the authorized, completed and cancelled events ...

`  mounted () {
this.$on('paypal-paymentAuthorized', function (params) {
  console.log('paypal-paymentAuthorized fired: ', params)
})
this.$on('paypal-paymentCompleted', function (params) {
  console.log('paypal-paymentCompleted fired: ', params)
})
this.$on('paypal-paymentCancelled', function (params) {
  console.log('paypal-paymentCancelled fired: ', params)
})

},` I also tried:

 `events: {
'paypal-paymentAuthorized': function (params) {
  console.log('paypal-paymentAuthorized fired: ', params)
},
'paypal-paymentCompleted': function (params) {
  console.log('paypal-paymentCompleted fired: ', params)
},
'paypal-paymentCancelled': function (params) {
  console.log('paypal-paymentCancelled fired: ', params)
}

},`

but it does not log anything? am I wrong ? or missing any paramter ? thanks

cocoastorm commented 6 years ago

Hey, a similar question/issue was raised before about capturing the events the PayPal Button emits.

If you need any further help after referencing that particular issue, I'll be more than happy to help.