cancel
Showing results for 
Search instead for 
Did you mean: 

call an REST API after new Order in Magento

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

call an REST API after new Order in Magento

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...