Hi..
I have created
a new payment method in magento 2 , its working perfectly, so i want to create a php function that send order data and calls an external API to generate a payment reference according the generated order data.
I want it to be as follows: User select product -> User goes to shopping basket -> User clicks on checkout -> user fills in order details and selects my payment method if prefered -> User clicks on "finish order and make payment -> in background calls that php function..
an ideas please...