1
wishcraft
Payment Gateway Solution in Xoops

Well I have been using XOOPS for sometime now, almost 3 years and I have just written my first module. It is called 'makepayment' and it took me a little on 12 hours to finish in it early alpha phase.

I have various websites as do many other people but the one thing I found was billing some of them was a headache (mainly cause of the adult content in one) couldn't use paypal or moneybooker or any others.

So I am starting to build a payment gateway solution. It i based in xoops, which i felt was as usual the practial way to building a website fast.

The website is http://www.paythem.biz, I am still organising the payment solutions with a bank, but I might as well get the site out of the way. I am using a theme from http://www.xoopdesigns.com which I will eventually get a new look.

The code for the site will eventually be under an SSL umbrella, but this is a bit what the script looks like to use it, the payment system is completed so far, it assign a ticket to every request at the site.

I am also going to have a cron that triggers other websites when the payment come through on EFT or bpay. I am starting small with the australian market first seeming that is where I am from:

Now to some HTML

<form action="http://www.paythem.biz/modules/makepayment/?op=checkin&uid=cej" method="post" name="payment" id="payment">
  <
input type="submit" name="Submit" value="Submit Via Post">
  <
input type="hidden" name="primarycurrency" value="AUD">
  <
input type="hidden" name="payee_emailaddy" value="lsd25@hotmail.com">
  <
input type="hidden" name="trigger" value="http://www.paythem.biz/trigger.php?transactionid=%transid%&trigger_pass=%trigger_pass%">
  <
input type="hidden" name="return" value="http://www.paythem.biz/return.php?transactionid=%transid%&trigger_pass=%trigger_pass%">
  <
input type="hidden" name="cancel" value="http://www.paythem.biz">
  
  <
input type="hidden" name="itemname_1" value="Test Product 1">
  <
input type="hidden" name="quanity_1" value="1">
  <
input type="hidden" name="unitprice_1" value="19.95">
  <
input type="hidden" name="currency_1" value="AUD">
  
  <
input type="hidden" name="itemname_2" value="Test Product 2">
  <
input type="hidden" name="quanity_2" value="3">
  <
input type="hidden" name="unitprice_2" value="9.95">
  <
input type="hidden" name="currency_2" value="AUD">
  
  <
input type="hidden" name="itemname_3" value="Test Product 3">
  <
input type="hidden" name="quanity_3" value="10">
  <
input type="hidden" name="unitprice_3" value="1.95">
  <
input type="hidden" name="currency_3" value="AUD">

form>


In this example you find the basic script in html to fire my payment solution gateway. I will be looking for beta tester eventually to iron out the bugs, if you want to sign up please do (the site is off at the moment thanks to trusty planetdomain.com.

I am convinced if there was to be a ruby release of XOOPS it still wouldn't be as fast developing under php.
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

2
wishcraft
Re: SSL Completely working with Twarte Security Seal Working.

The code has changed slightly, now, all the same except you will need to put a HTTPS on the HTTP on this tag:



is infact



I think I will use it for my pron site, what a hobby websites and construction, geeze that module righting part of XOOPS is easy once you understand the construct.
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

Login

Who's Online

358 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 358


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits