cocoastorm / vue-paypal-checkout

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

onInit, onClick events with form validation? #94

Closed goors closed 4 years ago

goors commented 4 years ago

How can I use this with your plugin?

https://developer.paypal.com/docs/checkout/integration-features/validation/#asynchronous-validation

I tried to modify it but it seems that this part of PayPal npm package is missing actions:

onClick: {
      type: 'function',
      required: false,
      noop: true,
      decorate: function decorate(original) {
        return function decorateOnClick(data) {

Long story short how can you validate form first and then allow PayPal actions to proceed?

Kinzi commented 4 years ago

@goors Where you able to solve this somehow?

goors commented 4 years ago

@Kinzi nope. I was never able to resolve this. that PayPal button sucks!