Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.

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

Open
jonathanw2004 opened this issue Dec 28, 2018 · 4 comments
Open

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

jonathanw2004 opened this issue Dec 28, 2018 · 4 comments

Comments

@jonathanw2004
Copy link

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
Copy link
Author

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]
  };

@vincenzourbisaglia
Copy link

Any update on that?

@Kabyno
Copy link

Kabyno commented Jun 23, 2019

I’m interested by this feature too.

@theissn
Copy link

theissn commented Dec 10, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants