This forum is now Read-Only. The Magento Community Forum is scheduled to close permanently on December 31, 2025. Please save any necessary information before this date. Join us on Slack for continued engagement!
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..