Jump to content

Custom payment gateway


shile

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated