Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

creating new gateway module?


Recommended Posts

Posted

I'm creating a new payment module for Virtual Merchant; however, I have everything processing right (payments successfully going to call URL) but I can not figure where to find the functions that clean the shopping cart of contents after a successful payment. Where should I look for these functions/classes and if so, where would I put the function to clear the shopping cart (for instance, in the confirmation(), after_process(), or pre_confirmation_check() functions in the payment module script (/includes/modules/payment/virtual_merchant.php) or are the functions elsewhere?)? Also, where do I put the code to Insert an order into the database after successful payment?

 

Are there any clear examples in previous payment libraries? If so, which?

 

Thanks for the help!

Alex

Posted

UPDATE** I found where the checkout process is being done... "checkout_process.php"

However, I still cannot seem to make it work for the custom payment module? Any suggestions?

Posted

sorry for the updates... please ignore this thread. problem resolved!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...