cocoastorm / vue-paypal-checkout

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

how to get response callback #85

Open jazuly1 opened 5 years ago

jazuly1 commented 5 years ago

hi, thanks for awesome plugin, but how if i want to get data of detail transaction after transaction is successfull?

or how to know if the transaction is successfull?

fedeverdi commented 5 years ago

You can use "payment-authorized", "payment-completed" and "payment-cancelled" events.

v-on:payment-authorized="paymentauthorized"
..............
methods: {
  paymentauthorized(event) {
     // Your response
     console.log(event); 
   }
}