Help?? Attempting to write a Quantum Gateway for WooCommerce

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JaysHouse
Forum Newbie
Posts: 4
Joined: Sun Apr 01, 2012 2:38 pm

Help?? Attempting to write a Quantum Gateway for WooCommerce

Post by JaysHouse »

First, I would like to say I am a newbie to developing code in PHP. I have written programs many years ago in gwbasic, lol, but I have always been more of a techie. I have played around with PHP since 2004 manipulating it and writing simple modules and plugins for Joomla, WordPress, and osCommerce. With that said, I still do not know a whole lot, it was not until about 3 weeks ago I got serious about becoming a PHP developer and actually started studying the code more.

I have joined this forum in hopes to find some valuable resources and possibly some advice from experts here. Or at least from anyone who knows more than I do == Everyone :)

I have been working for a few days on developing a plugin for the Quantum Gateway Inline Frame API. Documentation is very limited on both sides.

I have modified the quantum script to meet most of my needs, plus I have built this on the gateway framework provided in WooCommerce Extending Docs.

I have got the site pass the API credentials stored in the database from the admin side. I had to put my code i the Process Payment function area in order to pass the $order->total and related variables to the the gateway. Now when I choose to place the order it reloads the checkout screen with IFRAME loaded on top of the user data fields.

At this point I would like the IFRAME to load in a blank page with Wordpress and Cart headings of course, but without everything else and with the Place Order butting again because the IFRAME has a Submit button.

Then I need to figure out how to write the response script to retrieve the response and mark Payment Complete.
I have studied and manipulated code from the built in WooCommerce gateways and that how I got this far.
If you would like to see the page and test it out go the url below. Don't worry it all in test mode including the gateway and you can run TEST CC numbers on it like 4111111111111111.
http://insidetopic.com
Post Reply