Thank you Andreas!
According to the developer documentation an intent is part of PayPal Plus:
https://developer.paypal.com/docs/paypal-plus/germany/integrate/create-payment-resource/
The PayPal Plus documentation references the general PayPal API which states that an intent request can either contain sale, authorize or order:
https://developer.paypal.com/docs/api/payments/v1/#payment_create
So as far as I understand this would be possible?
Within the embeded API there is the following comment:
Captures and processes an authorization, by ID. To use this call, the original payment call must specify an intent of authorize
, see:
Source: /woo-paypalplus/lib/PayPal/Api/Authorization.php [436]
As far as I can see the plugin sets the intent always to ‘sale’ instead of a variable:
->setIntent('sale')
Source: /Users/book/Downloads/woo-paypalplus/src/Payment/PaymentCreator.php [84]
Wouldn’t it be possible the set a variable from the plugin settings here?
-
This reply was modified 3 years, 6 months ago by websess.