En cours

Joomla php code small mod - pass function vars to site

I have a website almost done for a villa rental. A user will enter the dates they want to book the villa for, then they will click a 'book now' button - which will take the user to a payment gateway provider website (securepaytech) where they will enter their credit card details.

I need to add some code - which I have been given by the gateway provider company - and insert it into the existing php code that comes with a joomla booking extension that I purchased. The code is fairly simple, it just passes the the amount of the rental booking, a reference number and merchant ID to the payment gateway provider's site. I just don't know where to put the code.

The code I need to integrate is -

<form action="https://merchant.securepaytech.com/paymentpage/index.php"

method="post" id="mypaymentform">

<input type="hidden" name="amount" value="<25% of ice booking amount form" />

<input type="hidden" name="merchantID" value="TESTDIGISPL1" />

<input type="hidden" name="returnURL"

value="http://www.mywebsite.html" />

<input type="hidden" name="cancelURL"

value="http://www.mywebsite/pre-payment.html" />

<input type="hidden" name="orderReference" value="Ref-CustomerName"/>

<input id="sub" type="submit" value="Pay by Credit Card" />

</form>

Note: amount = 25% of the whatever the total booking is.

merchantID will be provided by [url removed, login to view] (TESTDIGISPL1 is valid and can be used for testing)

returnURL and cancelURL will be provided once the code is done.

The site is done using Joomla 2.5, and the Joomla booking extension I purchased is icebooking. There are many php files and functions to the icebooking system, as it is designed to integrate with PayPal, but I'm not using that integration at my client's request. So it is not totally straightforward, I am assuming you'd need to trace quite a bit of code to work out where to put the above code.

Compétences : Javascript, Joomla, PHP

Voir plus : php code function, rental booking, rental book, php code booking system, paypal extension joomla, number function, javascript credit card, index bit, function number, code that, book rental site, book rental company, bit index, add credit card paypal, villa , type code, php credit, payment system joomla, insert card, pre booking, input hidden post, post form hidden, request post form submit, form mod, html javascript code simple

Concernant l'employeur :
( 2 commentaires ) Peppermint Grove, Australia

N° du projet : #1663585

Décerné à :

rabbul

Please check PMB

150 $ AUD en 2 jours
(347 Commentaires)
7.7

4 freelance ont fait une offre moyenne de 213 $ pour ce travail

Risalat1

Let me do it quickly!

250 $ AUD en 5 jours
(76 Commentaires)
6.4
itconsultindia

joomla/php team

250 $ AUD en 2 jours
(9 Commentaires)
2.9
RLT

Dear Sir, I'm Electronics engineering and 15 year experience I have. I had worked 13 year at Reserch Institue in Turkey. I have generated several codes until. Languages which I know listed below. -C++ -Visual C++ - Plus

200 $ AUD en 4 jours
(0 Commentaires)
0.0