By Redsmartie on
I have the latest e-commerce installed and running and I am successfully checking out via Worldpay in test mode but I need some assistance understanding how the callback works.
At the moment I'm getting a successful test transaction and email from Worldpay but it all ends there on the Worldpay site.
What do I have to do next?
Comments
quick one..
Hi redsmartie,
I created that module a while back for another drupaller..I didn't realise it had been updated for version 5.
In your worldpay configuration page (on worldpay.com), you need to specify the worldpay_callback link back to your Drupal site. Once that is done, the Worldpay module will automatically catch and recognise completed/cancelled transactions and you can specify what is displayed on the moduyle settings page in Drupal.
So if your site is
www.example.comyour Worldpay call back link will be something likehttp://www.example.com/worldpay_callback. In other words, you need to tell Worldpay where to go once the transaction is complete/cancelled.I hope that makes sense. Post up here if you run into bother.
Dub
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
I'm still landing on a
I'm still landing on a Worldpay Thank You page. I get the email from worldpay confirming the (test) transaction but there's no attempt to hand back to the site.
Here's the Select Junior config page as it stands.. what else might I need to set?
http://www.redsmartie.com/pics/worldpayconfig.jpg
quick one..
It's a while since I looked at worldpay...
Isn't there another configuration page where you override the thankyou pages and specify you're using the callback?
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
That is the only screen of
That is the only screen of configurable options
I've noticed that the
I've noticed that the callback failure count increments and the callback suspended is ticked. If I untick it and try again it continues to increment the failure and suspend the callback.
I have entered my email address for failure notifications and clicked to have full error details sent but nothing has come through to me yet.
edit: I have a reply
Error reported: Callback to http://www.mysite.com/worldpay_callback: NOT OK, recevied HTTP status: 404
Server Reference: mggaeq3a:callbackFailureEmail-26111160:MerchReq-155
(I changed the address in this post to mysite.com)
I've sorted the first (and
I've sorted the first (and probably most important one). In the e-commerce worldpay settings page I have the Thank you page/WorldPay callback URL: set as the full url, i.e. http://www.mysite.com/worldpay_callback (as entered on the worldpay site) rather than just worldpay_callback. Once I changed that I started to get the callbacks and status changes on my transactions.
The second problem that may not be able to be fixed but I would like to know what was supposed to have happened is with the three strings of text below this setting. Worldpay_callback - Payment Completed message etc. Worldpay makes no attempt to hand back to the site or is this what Worldpay calls the "callback response"?
edit: sorry if this is a bit "live". I enabled callback response and got handed back to my site although the url was still worldpay until I clicked away.
The problem now is the text specified "WorldPay(tm) has accepted your card and payment has been made. Thank you. Click through to your %link to view/print out invoices and track your order." displays just as that. Isn't the string %link supposed to be replaced with something? Or am I supposed to do that manually?
quick one..
I'll have to install the module and have a look redsmartie..it's a while since I've used it. It sounds like the callback page isn't picking up the correct links to the invoice.
Are you using version 5.1?
When you go to your orders page, is the worldpay_module correctly marking the transactions as paid?
As I say I didn't realise the module was updated for 5.1 so it looks like that's been done but it hasn't been properly tested.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
I'm using 5.0 as I've yet to
I'm using 5.0 as I've yet to update this site to 5.1.
Transactions are properly being marked off as paid.
I've changed the text at the moment due to the fact that I don't need people to track orders as they are single donations in this case (but not my next project).
Drupal 5.7
After searching a bit I, I realised the arguments passed to worldpay were not actual. Here is my fix
If anyone could make a patch out of this please.
WorldPay patch
Just what I needed in one of my projects. I was wondering why user email wasn't showing on worldpay payment process page and with this fix it does now. So I made patch with the fix that weedoo posted.
I don't know why I can't attach a file, so I just pasted the content of a patch:
Gregor Flajs, Drupal Web developer