Guest Posted August 13, 2008 Posted August 13, 2008 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 Quote
Guest Posted August 13, 2008 Posted August 13, 2008 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? Quote
Guest Posted August 13, 2008 Posted August 13, 2008 sorry for the updates... please ignore this thread. problem resolved! Quote
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.
Note: Your post will require moderator approval before it will be visible.