romatr Posted October 21, 2008 Share Posted October 21, 2008 Hi, Could anybody explain me how can I impelment this type of transaction in my custom payment module. My gateway supports it. At this time I have mygateway.php module with mygateway_capture() function working under whmcs cron.php Thank you. 0 Quote Link to comment Share on other sites More sharing options...
romatr Posted October 28, 2008 Author Share Posted October 28, 2008 Could anybody answer me? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 28, 2008 Share Posted October 28, 2008 Your gateway supports it. Who is your gateway? Do they have an API? What functions/code have you written? Its a bit hard to try and answer or help with something when you have provided no information. Can you elaborate. 0 Quote Link to comment Share on other sites More sharing options...
romatr Posted October 28, 2008 Author Share Posted October 28, 2008 Ok, I wrote custom payment gateway plugin for TrustCommerce. I used their API (php extension). I wrote only 'sale' type of transation, and put it into trustcommerce_capture() function in the trustcommerce.php gateway file. But TS API also have and support 'credit' type of transaction. How can I implement this? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
jozeph Posted October 28, 2008 Share Posted October 28, 2008 What is the function to call on refund? mygateway_refund()? 0 Quote Link to comment Share on other sites More sharing options...
romatr Posted October 28, 2008 Author Share Posted October 28, 2008 to Jozeph: I don't know, but it seems no. There are only two functions for working with payments: template_link() and template_capture(). That's why I ask this. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.