Guillaume Posted March 17, 2021 Share Posted March 17, 2021 Dear all, I am developping a payment plugin (zip enclosed). Similarly to many payment plug-in, on the main file I have a gateway.class.php file with a function "call()". As far as I understood (but maybe I understood incorrectly), this function intends to do some post-processing after the payment request is sent. However, for a reason which I ignore, in my plug-in, that function call() is never called at all. I know it isn't called, because I have tried inputting the following instruction as a first instruction: $GLOBALS['cart']->clear(), and the cart is never emptied, no matter the payment status. As a comparison, the plug-in Print Order Form (enclosed) has a function call() which is called (I made a similar test commenting or uncommenting the same instruction). Appreciate if anybody has any hint here! Cheers, Guillaume Systempay 16 03 2021 - pm.zip Print_Order_Form.zip Link to comment Share on other sites More sharing options...
Guillaume Posted March 18, 2021 Author Share Posted March 18, 2021 That was my mistake, and for those who might be interested, to have this function call, you must ensure the call-back URL is indeed yourStoreUrl/modules/gateway/Yourgatewaymodule/return.php I had set up yourStoreUrl/return.php and the call() function was totally ignored. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.