vue-paypal-checkout icon indicating copy to clipboard operation
vue-paypal-checkout copied to clipboard

how to get response callback

Open jazuly1 opened this issue 6 years ago • 1 comments

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?

jazuly1 avatar Jul 05 '19 07:07 jazuly1

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

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

fedeverdi avatar Jul 22 '19 09:07 fedeverdi