Page 1 of 1

Script for calling callback function for payments module

Posted: Tue Jul 27, 2010 12:34 am
by jty
Hello,
I am trying to write a payment module for Mals-e.com. I nearly got it (I think) but now I'm stuck on how to call the callback function.
I have searched this forum, trying to mimick paypal, but not knowing paypal, I dunno what people are saying.
My understanding of the callback function is that it:
1. Updates the order status
2. sends the customer to the success page (I don't need this step)

Mal's has a Remote Call feature which will call a script after the buyer has finished paying.
I'm thinking that I can use this remote call feature to call the callback function in the malse.php file
But what do I write in the script :crazy: I'm not a programmer so I am clueless :(

Another option is to just forget the callback function in malse.php and write my own mysql to update the order table with the order status. Is that all I need to do ? Guess I had also better check when the email to the customer is triggered.

-------------
Note for others who read this in the future
You can modifiy the twocheckout payment option to suit Mals-e
It was really easy except I had trouble thinking how to get opencart's order number back. So I used Mal's 'message' field.
Other than that, it was a straight global find/replace of the words for twocheckout with malse
except for this last callback bit which Q is going to help me with. Right Q ? :drunk:

Re: Script for calling callback function for payments module

Posted: Sat May 05, 2012 7:50 pm
by AllenConquest
Hello,
Did you get this callback working from Mals-e. I am attempting something similar with Mals to collect credit card details. I agree that you can use the twocheckout as a template, but I have made many changes to streamline the experience.

The last piece of the puzzle is the callback to OpenCart, so any help would be greatly recieved. I will put this up as a module once it's working properly.

Thanks,

Allen

Re: Script for calling callback function for payments module

Posted: Sat Dec 08, 2012 5:11 am
by beattie
Mal's Opencart Payment Module for OC v1.5x is available here http://www.opencart.com/index.php?route ... on_id=7759