nicolas wrote: Hi,
You can look at the PayPal Pro payment plugin for an example of that. It sends a call to the API in the onBeforeOrderCreate trigger and directly confirms the order in the onAfterOrderCreate function with the modifyOrder function.
Thanks for reply,
it actually didn't solve my problem, the order status is still 'created' not 'confirmed'
I have followed PaypalPro flow, in onBeforeOrderCreate I am sending the API request and validating the result, and in onAfterOrderCreate, I am configuring the email(the same of PayPal Pro) and modifying the order with the same call (modifyOrder)
but with no help, I even tried activating PayPal Pro (after little modification to allow null payments) the order is also hanging in the created state