shile Posted September 2, 2016 Share Posted September 2, 2016 Hi, I just started developing a custom third party gateway and i encountered a few issues.How can i CREATE and DROP a certain table on gateway activation and deactivation?(I searched through the documentation and i found _activate and _deactivate hooks but they are for modules and is not working for payment gateways) Another thing that i cant find is- where and how do i redirect a user after the third party gateway hits my callback file? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 2, 2016 Share Posted September 2, 2016 I just started developing a custom third party gateway and i encountered a few issues.How can i CREATE and DROP a certain table on gateway activation and deactivation?(I searched through the documentation and i found _activate and _deactivate hooks but they are for modules and is not working for payment gateways) you can place and run the SQL commands inside gateway_metadata function Another thing that i cant find is- where and how do i redirect a user after the third party gateway hits my callback file? redirect and callback URLs is two different things, callback URL called by your gateway anytime they have an update the payment your client made. many gateways ask for return or redirect URL, where clients will be redirected after successful payment, this is what you need to look for 0 Quote Link to comment Share on other sites More sharing options...
shile Posted September 6, 2016 Author Share Posted September 6, 2016 you can place and run the SQL commands inside gateway_metadata function I have tried this,but it is not working... 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 6, 2016 Share Posted September 6, 2016 I have tried this,but it is not working... make sure you place your query before the "return" 0 Quote Link to comment Share on other sites More sharing options...
shile Posted September 7, 2016 Author Share Posted September 7, 2016 I added my query inside _config() and now it is working.I couldnt get it to work inside _metadata(). I have another question if you would be kind to answer,when i set a product to be billed monthly how do i set up my third party gateway to bill the client?Considering that i dont have any credit card informations about the user,how is this supposed to be done? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 7, 2016 Share Posted September 7, 2016 using credit card information or a token generated by the gateway when your client enter their CC info, if they support this feature anyway 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.