DineroMail Payment Gateway Method for Latinamerica

I am traying to add a new payment gateway for customers in Latinamerica this service is DineroMail you can see more info here: [url]https://mx.dineromail.com/biblioteca[/url]



Ok i create a new php script in the folder payments dinero_mail.php



```php
//

// $Id: dinero_mail.php 7502 2010-23-11 14:54:59Z fcastrof $

//

echo <<





















EOT;
exit;
?> ```

Ok the question is: when the costumer finish the transaction in the website of DineroMail they will be returned to my site but the car still full and the order keep failed status my idea is: when the costumer will returned to the site verify if the url of acces come from DineroMail and change the status of order to Open "O" and clear the itesm in the cart.

Step by step:
1 customer add itesm to the car
2 cutomer select dineromail as payment method
3 dineromail process the bill
4 dineromail send the costumer back to the store fro this url "https://checkout.dineromail.com/CheckOut/ConfirmPayment/mx_oxxo"
5 verify if the url from return is from "https://checkout.dineromail.com/CheckOut/ConfirmPayment/mx_oxxo"
6 change order status to open "O" and send confirmation email
7 Clear cart items

Please helpme to improve this.

[color=#000000][font=Arial][size=4]Hello,[/size][/font][/color]



[color=#000000][font=Arial][size=4]The DineroMail payment system was developed in the System Integration department of CS-Cart on a paid basis. [/size][/font][/color]



[url=“http://rgilaev.simtechdev.com/newaddons/index.php”][color=#1155cc][font=Arial][size=4][u]http://rgilaev.simtechdev.com/newaddons/index.php[/u][/size][/font][/color][/url]



[attachment=6051:1.png]



[attachment=6052:2.png]



[color=#000000][font=Arial][size=4]Access to the admin area of CS-Cart:[/size][/font][/color]

[color=#1155cc][font=Arial][size=4][u]http://rgilaev.simtechdev.com/newaddons/admin.php?dispatch=payments.manage[/u][/size][/font][/color]



[color=#000000][font=Arial][size=4]Email [/size][/font][/color][color=#1155cc][font=Arial][size=4]admin@example.com[/size][/font][/color][color=#000000][font=Arial][size=4] and password admin[/size][/font][/color]



[color=#000000][font=Arial][size=4]Please let me know if you would like it to be modified or adapted to other CS-Cart version or edition.[/size][/font][/color]



[color=#000000][font=Arial][size=4]Feel free to contact me via email sales@cs-cart.com, Subject “Att Ramil Gilaev - DineroMail payment”[/size][/font][/color][color=#000000][font=Arial][size=6] [/size][/font][/color]

1.png

2.png