Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worldpay Payment Gateway Module - Redirect issues #762

Closed
Noodleyman opened this issue Aug 27, 2015 · 9 comments

Comments

Projects
None yet
3 participants
@Noodleyman
Copy link

commented Aug 27, 2015

After making a payment with the worldpay gateway module, worldpay calls the return URL. The order status becomes updated to processing but there is no redirection from the worldpay payment summary page.

This means the customer basket does not get reset / cleared between orders.

@havenswift-hosting

This comment has been minimized.

Copy link

commented Aug 27, 2015

I can also confirm this - we have a client using WorldPay that also has the same problem although interestingly this did used to work ?!

@abrookbanks

This comment has been minimized.

Copy link
Member

commented Aug 27, 2015

Can you set the return URL to be like this...

http://www.example.com/store/index.php?_a=complete

@Noodleyman

This comment has been minimized.

Copy link
Author

commented Aug 27, 2015

Nope, because that wouldn't trigger the update of the order status to processing via the module. The current return URL uses return.php within the module itself.

@abrookbanks

This comment has been minimized.

Copy link
Member

commented Aug 27, 2015

can you not add that as well as the call URL? Alternatively... change the URL to have

cmd=process

instead of

cmd=call

The in the gateway.class.php file move the code in the call method to the process method.

I think I tried that and never got it to work.

@Noodleyman

This comment has been minimized.

Copy link
Author

commented Aug 27, 2015

Not tested this as I haven't time today, but I think the processing of "complete" in the URL happens before the loading of the module, so it would either be one or the other.

I think the module itself needs an update to use the most recent methods as per the developer guide.

See page 35..
http://support.worldpay.com/support/kb/bg/pdf/rhtml.pdf

@abrookbanks

This comment has been minimized.

Copy link
Member

commented Aug 27, 2015

I honestly don't this this is possible.. However I do see a great work around here:

http://stackoverflow.com/questions/8232607/how-do-i-create-returning-page-setting-with-worldpay

Create a page for success and fail with:

<p><a href="http://www.example.com/store/index.php?_a=complete">Redirect back to my shop</a></p>

@abrookbanks

This comment has been minimized.

Copy link
Member

commented Sep 1, 2015

Nothing to change. The above can be implemented if you want.

@Noodleyman

This comment has been minimized.

Copy link
Author

commented Sep 8, 2015

The article is no longer valid as you don't upload pages to the worldpay config area.

there are variables to pass with config in them.

To solve this issue the following needs to be added to the $hidden array in the gateway.class.php file

'successURL' => $GLOBALS['storeURL'] . '/index.php?_a=complete'

@abrookbanks abrookbanks added this to the 6.0.8 milestone Sep 9, 2015

@abrookbanks abrookbanks self-assigned this Sep 9, 2015

@abrookbanks

This comment has been minimized.

Copy link
Member

commented Sep 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.