News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Worldpay in Virtuemart 2

Started by scarrott, March 01, 2012, 15:44:25 PM

Previous topic - Next topic

scarrott

I am trying to get this to work but am struggling somewhat. I've worked my way through the Worldpay documentation and just want to direct the customer to the Worldpay payment page. I've tried setting it up as a standard payment type and entered the relevant payment info, but when i get to the end of the checkout procedure, i'm not transferred. Nothing happens. I'd be really grateful if anyone could point me in the right direction here.

The code i've used is as follows:

<form action="https://secure.worldpay.com/wcc/purchase" method=POST>
<input type=hidden name="testMode" value="100">
<input type="hidden" name="instId" value="INSTALLATION ID">
<input type="hidden" name="cartId" value="<?php echo $db->f("order_id"?>">
<input type="hidden" name="amount" value="<?php echo $db->f("order_total"?>">
<input type="hidden" name="currency" value="GBP">
<input type="hidden" name="desc" value="COMPANY NAME" />
<input type="hidden" name="email" value="<?php echo $user->email?>" />
<input type="hidden" name="address" value="<?php echo $user->address_1?>
<?php echo $user->address_2?>
<?php echo $user->city?>
<?php echo $user->state?>" />
<input type="hidden" name="name" value="<?php echo $user->title?><?php echo $user->first_name?>. <?php echo $user->middle_name?><?php echo $user->last_name?>" />
<input type="hidden" name="country" value="<?php echo $user->country?>"/>
<input type="hidden" name="postcode" value="<?php echo $user->zip?>" />
<input type="hidden" name="tel"  value="<?php echo $user->phone_1?>">
<input type=submit value="PROCEED TO PAYMENT PAGE">
</form>

OpenGlobal

Have you had any luck with this?

We have written some payment processor plugins for VM2 and would be interested in helping you with a WorldPay payment plugin if you still need this.

OpenGlobal

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

WebStuff

#3
HI,
I'm currently working on a non-commercial WorldPay payment plugin. (That's right FREE)  :)
I've got it working to the point that it transfers the shopper to the WorldPay server for payment with all details,  etc. and they can pay for their products and get WorldPay Confirmation or Cancel page but I can't for the life of me get the payment response side to work.
I'm flailing in the dark here any help greatly appreciated.

Payment response URL would be a start I have no idea how the coms between my server and WorldPay's server is formatted for the response side of things nor how to debug it.

Any help greatly appreciated.

alatak


WebStuff

#5
Quote from: alatak on April 03, 2013, 16:02:49 PM
Hello
There is a plugin for Worldpay here: http://extensions.virtuemart.net/payments/worldpay-html-redirect-1-0-2-detail
Thanks for the link alatak, I've seen a couple of WorldPay plugins but they are all paid for solutions, mine would be free.
Thanks again.

EDIT: Just tested that one and it does exactly the same as mine, i.e.  no return to site after payment.

ssc3

#6
Quote from: mirrorsandglass on April 03, 2013, 16:24:08 PM
EDIT: Just tested that one and it does exactly the same as mine, i.e.  no return to site after payment.

The demo does not return to site after payment, but the full version of that plugin does. Currently 1.0.4

The plugin returns to an order summary page on the merchants site.
The order status is changed from pending to confirmed.
Virtuemart invoice emails are send out to merchant and customer.
The payment response is password protected for extra security.

Transactions are also MD5 encrypted.
This prevents for example, a customer buying an item for £10,
changing it to a £1 on their browser and then
submiting the transaction to WorldPay.

http://extensions.virtuemart.net/payments/worldpay-html-redirect-1-0-2-detail
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

WebStuff

Quote from: ssc3 on April 08, 2013, 10:47:46 AM
The payment response is password protected for extra security.
Transactions are also MD5 encrypted.
http://extensions.virtuemart.net/payments/worldpay-html-redirect-1-0-2-detail
Mine does these also. :)

The bit I can't get to happen is the payment notification trigger, I am beginning to think it is some sort of POST data filtering on my server that is knackering in the POST from WorldPay Servers