More information about the Underscore mailing list

[_] Worldpay XML direct

Tom Holder taholder at gmail.com
Sun Apr 17 18:18:39 BST 2011

Hi Andy,

That would be great if you have. I'm pretty much there with it, it's just
this bit that's annoying me.

Thanks for your help everyone, will try the cookie jar thing.

Tom


On 15 April 2011 11:20, Andy Davies <dajdavies at gmail.com> wrote:

> On 15 April 2011 09:06, Tom Holder <tom at simpleweb.co.uk> wrote:
>
> > Hello _
> >
> > I'm just trying to integrate Worldpay XML direct in to a website - what
> > fun!
> > It's all reasonably straightforward (if you don't mind turning a blind
> eye
> > to the ridiculous XML structure and the fact it's XML in the first place)
> > but I'm having a slight issue with cookies.
> >
> > From (
> >
> >
> https://crm.rbsworldpay.com/cgi-bin/rbsworldpay.cfg/php/enduser/std_adp.php?p_faqid=909&p_created=1236008082&p_topview=1
> > )
> >
> > "Note:
> > We use a farm of web servers that serve all the requests. A loadbalancer
> > sends a request to a web server with the lowest load. Subsequent request
> > can
> > go to different web servers.
> > Because we need to keep some session information between the first order
> > message and the second order message, we must ensure that the second
> order
> > message goes to the web server that served the first order message. To
> > enable this, the merchant needs to be able to accept cookies. This cookie
> > ensures that the loadbalancer knows where to send the second order
> message.
> > Currently, it is not possible to test that cookies have been enabled
> > successfully via our test environment, this can only be fully tested
> using
> > our live environment."
> >
> > This makes sense, but how would you go about doing this with CURL in PHP
> > which is how I'm submitting the XML? Is it something to do with the
> > CURLOPT_COOKIEJAR parameter? From what I understand that lets me grab a
> > cookie as it comes back? How do you resubmit it though?
> >
> >
> Are you using the Global Gateway product (used to be called Bibit)
>
> If so I *might* have some example code for this at home somewhere as the
> last company I worked for used this.
>
> I'll have a hunt over the weekend
>
> Andy
> --
> underscore_ list info/archive ->
> http://www.under-score.org.uk/mailman/listinfo/underscore
>