Open jonathanw2004 opened 5 years ago
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]
};
Any update on that?
I’m interested by this feature too.
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:
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.