WorldPay options

  • Stewart Page
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #17420 by Stewart Page
WorldPay options was created by Stewart Page
Just noted a few things. Recently, WorldPay changed their payment URL to secure.worldpay.com/wcc/purchase and the test site to select-test.worldpay.com/wcc/purchase , so this will need to be changed in the components/com_eventbooking/payments/os_worldpay.php file.

I also noticed that registrants weren't showing up in the list after they had paid. The setting is in Configuration->Show Pending Registrants - this needs to be set to Yes, and suddenly the registrants appear. You then need to confirm their registration manually.

Anyway, to my question. WorldPay offer custom fields, that a user can enter and have passed back to the website from Worldpay after processing, these start with M_ This also includes an M_CallBack option that I have used for years on .ASP sites I have built. Does anybody know how we could implement the M_CallBack, as I want to return my users to a specific page that allows them to print out an eTicket.

I can't change the callback site on the WorldPay site, as we use this account for several different websites, all with different callback pages, and all written in different tools (i.e. ASP, ASP.NET Joomla etc)

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17468 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: WorldPay options
Hi

The worldpay payment plugin was implemented long time ago and I didn't notice this change (will look at their documentation again soon). To add the Callback URL to the code, please try to use the step below :

1. Open the file components/com_eventbooking/payments/os_worldpay.php

2. Find the function processPayment

3. Add the code below to that function :
Code:
$this->setParam('M_CallBack', 'http://yourdomain.com/index.php?option=com_eventbooking&task=payment_confirm&payment_method=os_worldpay');

(please make sure you replace yourdomain.com with your actual site URL) .

After that, please test it again and let me know the result .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Stewart Page
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #17488 by Stewart Page
Replied by Stewart Page on topic Re: WorldPay options
Hi Tuan

I tried that, but WorldPay still remains on the payment confirmation screen. The registrants are ending up in the database, but if I enter the full URL in a browser on it's own, it only returns a blank screen, so I'm not sure if I should be adding anything else.

Thanks
Stewart

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #19414 by Chris Patrick
Replied by Chris Patrick on topic Re: WorldPay options
Hi

Is there a solution for this? I'm reluctant to change any code if there's still an issue.

Please Log in or Create an account to join the conversation.

  • Stewart Page
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago #19417 by Stewart Page
Replied by Stewart Page on topic Re: WorldPay options
Hi

I'm afraid it still remains on the WorldPay screen. Everything else appears to be working OK, the user just has to re-access the website to view other pages. If it can be resolved, it would be very helpful.

Regards
Stewart

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #19418 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: WorldPay options
@ALL : I think I have solution for this problem. I will implement it and get back to you on Wednesday. Please wait for me

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #19419 by Chris Patrick
Replied by Chris Patrick on topic Re: WorldPay options

Stewart Page wrote: Hi

I'm afraid it still remains on the WorldPay screen. Everything else appears to be working OK, the user just has to re-access the website to view other pages. If it can be resolved, it would be very helpful.

Regards
Stewart


I assume the Event still doesn't register the registrants...This is what I see happening and I guess is due to the return URL.

Looking forward to the fix :)

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #19525 by Chris Patrick
Replied by Chris Patrick on topic Re: WorldPay options
Sorry to chase but I've a contract depending on this.. :(

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #19556 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: WorldPay options
Hi Chris

Do you have a Skype account ? Could we talk on Skype so that we can check and solve the issue together ? Your issue is not related to the issue mentioned by Stewart. If registrants are not showed after you completed payment, there must be something wrong with the setting in your Worldpay account . Could you please change settings in your worldpay account as instructed below :
Code:
1. Login to merchant account at worldpay, edit the installation, in the Payment Response URL textbox, enter YOUR_SITE_URL/index.php?option=com_eventbooking&task=payment_confirm&payment_method=os_worldpay, for example, http://joomdonation.com/index.php?option=com_eventbooking&task=payment_confirm&payment_method=os_worldpay 2. Check on Payment Response enabled checkbox

Could you please do that and get back to me ?

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #19656 by Chris Patrick
Replied by Chris Patrick on topic Re: WorldPay options
Hi Tuan

Yes that's done the trick

Many thanks

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc