Jump to content
BrockleyJohn

Worldpay Hosted Payments extended

Recommended Posts

I am uploading to the addons area a version of the standard Worldpay Hosted Payments module with a couple of small improvements that improve the shopper experience and make shop admin easier.

 

The enhancements lie in the processing of shopper responses and payment messages, so that:

  • when the transaction is cancelled in Worldpay, the shopper is transferred back to the checkout payment page in osc, to complete the purchase in another way
  • when the transaction is authorised, the payment message is decoded and fraud checking results are added to the order status history. This saves logging into Worldpay to check each transaction before fulfilling the order.

Example of fraud checking info:

CVV: Matched
Postcode: Matched
Address: Matched
Country match: Matched
3D secure: Authenticated 

Link to the addon to follow once uploaded.

 

Github users with stores based on osc 2.3.4BS Edge can get the modified code in this branch:

https://github.com/BrockleyJohn/Responsive-osCommerce/tree/worldpay_payments_extended


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Here in the addons section:

http://addons.oscommerce.com/info/9502


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

I have just uploaded a new version, with an additional configuration option:

Transaction description

This description gets shown on the hosted payments pages at Worldpay and in the emails sent by Worldpay to the shopper and the contact set up in your Worldpay account.

The option allows you to set this description to a list of the products bought (the new default) instead of the store name which is already shown on the pages and emails.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

I have installed this to replace an old version, it works fine but I cannot find where to alter the transaction description parameter, it does not appear in the admin section of the module. I would like to see what customers have ordered in the Worldpay email that I receive.

Martin

 


OsC 2.3.4.1 CE Frozen   PHP 7.2   MySQL 10.1.36-MariaDB-cll-lve. Phoenix in development

Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix 1.0.4.0) here.

Share this post


Link to post
Share on other sites
3 hours ago, mhsuffolk said:

I have installed this to replace an old version, it works fine but I cannot find where to alter the transaction description parameter, it does not appear in the admin section of the module. I would like to see what customers have ordered in the Worldpay email that I receive.

Martin

 

@mhsuffolk sorry Martin - my fault (missed out the new file - doh!) - just overwrite the module file. Check the config but I think it defaults to showing the products. Fixed whole package being uploaded too.

rbsworldpay_hosted.php


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

New version of the addon uploaded - it's a bug fix and everyone should apply it. If you have the previous version installed, there's just one file to upload

catalog/ext/modules/payment/rbsworldpay/hosted_callback.php

and I attach it here to save you time.

hosted_callback.php


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Hi John,

I copied the file from the newest install and it works okay, and seems to update the basket on a completed order.  However, I have discovered if once I reach the payment page I press cancel, the order is still logged.  This is not a major issue as I can simply check to see if payment actually was rec'd and cancel an order if it hasn't, but wondered why this was happening.

thanks Kellie

 


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

What you should happen is that if a buyer presses cancel within Worldpay (assuming they're able to work out that you have to click on the little cross instead of the word cancel) it should take them back to the store (via the hosted_callback page which refreshes and forwards after 3 seconds) to the checkout_payment page, which deletes the order and puts the products back into the basket.

If someone goes off to worldpay but then just goes away (or their phone battery dies or...) then you are left with an order in the Preparing status (just like with Paypal). So usually this means it's an order to cancel.

On extremely rare occasions you may find that someone's battery died at the instant between paying and coming back to your site, so that their order is still Preparing - but in this case you will still get the email from Worldpay telling you that they paid.

If you think your customers are particularly impatient you can reduce the refresh delay so they don't click away before being sent back to the site.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Hi, 

I'm still having issues with this world pay module.  When a customer orders it logs an order at my side, which I see, and process, and update as normal. (the cancel thing is still an issue but I simply check to make sure they paid - bit of a pain, but not the end of the world).  What I have recently discovered is that it isn't logging an order for the customer.  so The basket does not empty, the stock does not reduce, and the customer order history shows as NO order made  - even though I see an order logged at my side.   Any solutions? thank you

Kellie


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

Your customer is not coming back to the store via the callback.

The most likely explanation is that you don't have the correct settings in the worldpay account. Check this in the documentation pdf that came with the addon and which is also available here:

https://library.oscommerce.com/Package&en&worldpay&oscom23&hosted

Make sure all the response (payment and shopper) settings are correct


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Thank you.  I think I may have had some errors in that, so hopefully my corrections will make things work properly now


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

Hi,

Basket is still not emptying.  I am wondering if my Worldpay module is perhaps out of date.  Can you provide a link to the most current one, so I can compare the files, and take a look at my settings to see if they are correct or erroneous.  Thank you5b33f7685c62b_ScreenShot2018-06-27at21_40_48.thumb.png.ec35e788f14584bcee6187b200aedf8b.png

Edited by zefeena
typo

Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

On my setup it is the same as yours with these exceptions.

The Shopper redirect field should be empty

You should have an email address in the Payment Response failure email address field

Be aware that occasionally I have instances of the cart not emptying but the payment completing OK. If non of the entries in the list has a green tick then that has probably happened.

Martin


OsC 2.3.4.1 CE Frozen   PHP 7.2   MySQL 10.1.36-MariaDB-cll-lve. Phoenix in development

Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix 1.0.4.0) here.

Share this post


Link to post
Share on other sites

@zefeena the latest code is here https://apps.oscommerce.com/brAIY

You also have a problem in your settings. Clear the Shopper Redirect settings highlighted - that could be sending people straight to your checkout success page and preventing order being finished off. You need to keep the payment response settings, though.

wp_settings.jpg


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

I've just uploaded a new version of the addon, removing the use of the each command which is deprecated on php7.2

There's one file updated - the payment module.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×