Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Worldpay Hosted Payments extended


BrockleyJohn

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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

Here in the addons section:

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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

  • 1 year later...

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.

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

  • 1 month later...

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

 

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

  • 3 months later...

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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
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.

Link to comment
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.

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
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.

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
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

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
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

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

  • 11 months later...

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.

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...