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

Can we add the 'authorize' support instead of only 'sale'?

Open jonathanw2004 opened this issue 6 years ago • 4 comments

Basically, I would like the UI to get the customers' authorization only and capture the payment in my backend code. This allows my customers to be able to cancel the payment in a period (3 days from PayPal) without any PayPal transaction fee on me. Thanks.

jonathanw2004 avatar Dec 28 '18 03:12 jonathanw2004

The fix could be just adding one line in the below code:

  var payment = {
     intent: this.commit ? 'sale' : 'authorize', <=== adding this line seems fix the issue.
     transactions: [transaction]
  };

jonathanw2004 avatar Dec 28 '18 03:12 jonathanw2004

Any update on that?

vincenzourbisaglia avatar Mar 06 '19 21:03 vincenzourbisaglia

I’m interested by this feature too.

Kabyno avatar Jun 23 '19 22:06 Kabyno

In case you're still waiting for this feature, I managed to accomplish this by adding the following prop on the component: :commit="false"

<PayPal
  amount="10.00"
  currency="GBP"
  env="sandbox" 
  invoice-number="WEB-123"
  :client="credentials"
  :commit="false"
/>

Which will then only authorize the payment and fire the below event:

image

theissn avatar Dec 10 '19 12:12 theissn