Add A New Custom Payment

Hi,

We have tried to ass a custom payment on version 4.9.12

In the table payment_processor, we have added a row with a processor called monetico

the processor script is placed in the folder app/payments

callback is set to N

no addon is specified

All works perfectly going to the payment site.

URL to get back to the website seems to be correct :

https://www.XXXXX.fr/index.php?dispatch=payment_notification.cancel&payment=monetico&order_id=131

But when we try the URL, we got a 404 issue on the Website

Do you know how to solve that ?

Thanks in advance

Hello

You should in your processor script placed in the folder app/payments add code.

if( defined('PAYMENT_NOTIFICATION') ) {

if($mode == 'cancel') {
fn_order_placement_routines('checkout_redirect', 0, false);
} // end if
} // end if
...........
Best regards
Robert

Did you check this article?

https://docs.cs-cart.com/latest/developer_guide/addons/tutorials/payment_processor_addon.html