I have PayPal Standard and Free Order set up.

If the order total is $0, it should be Free, if it's more than $0, it should be through PayPal WPS.

If I enable Optional Checkout Review AND Free Order, every order skips straight past PayPal, no matter the cost. On top of that, the order sticks at Pending, so everything that depends on it being set to Completed fails to trigger.

I disabled Optional Checkout Review and everything works perfectly.

Will this be fixed?

Comments

thefoo’s picture

Experiencing the same issue. Took me a little while to figure out what was happening.

erykolryko’s picture

oops same it skips Paypal and gives me the final message of order complete.
This process is long
Fill order-checkout-Review-Submit
How do i chuck out this review (drupal 7.x-2.2)

lcnphp’s picture

swatchion’s picture

Get this problem too, and the solution above is not quite detail, forgive me, I am not good at code, just a user.

spasebar’s picture

Issue summary: View changes

Can someone please tell me what I'm doing wrong? I went to the proposed fix but it doesn't work for me. I created a .module file, enabled it but I'm still getting Review Order button and have to go to that page.

malcolmp’s picture

StatusFileSize
new8.37 KB

The D7 version of uc_optional_checkout_review doesn't seem to work with paypal anymore. I fixed it for myself by porting the D6 version to D7 again, and have uploaded it below incase it helps someone:

https://drupal.org/files/issues/uc_optional_checkout_review.tar_.gz

cosolom’s picture

#6 work for me. I think it's need include in next release

davidwhthomas’s picture

Just a note in case others had the same problem.

We had an odd server architecture where HTTPS traffic was routed via an IIS reverse proxy server, then onwards to the Linux webserver.

The ARR proxy settings in IIS had been configured to "Reverse rewrite host in response headers". This prevented the redirect to an external domain. Unchecking that, applying, and restarting IIS fixed the issue for me.

bgm’s picture

Status: Active » Needs review

@malcolmp: thanks for the patches, I will try to review and integrate in the next release.

If more people can confirm that this works for them, I would appreciate as well. Apologies for not responding earlier.

haysuess’s picture

Have the differences in the module in #6 been applied to this module yet? It's not a patch, but a completely separate module so I'm not sure what the differences are.

bgm’s picture

Status: Needs review » Needs work

@haysuess: no, not committed yet. I'm not really sure either what makes one work and not the other. I don't really have time/resources to do proper testing, so this might stay stuck until someone sends a proper patch.

I looked quickly at the tar.gz posted, and it doesn't do anything bad. If it works for you, may as well use that (it doesn't handle a few things fixed in the -dev version, but those are mostly exceptions, such as "pay after" support).

Collins405’s picture

I just installed the tar.gz in #6 and can confirm it works for PayPal WPS

rfay’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Priority: Normal » Critical

Confirmed that #6 is functional, the released version is not at all (it prevents all payments by any module, even free orders)

rfay’s picture

Status: Needs work » Needs review
StatusFileSize
new810 bytes

It seems the simple fix is that the form-altered submit was loading the order from somewhere it didn't exist.

Here's a patch

  • bgm committed 2539dfa on 7.x-1.x authored by rfay
    Issue #2040205 by rfay: Skip Checkout Review Also Skips PayPal WPS...
bgm’s picture

Status: Needs review » Fixed

@rfay: thanks for the patch! Applied to 7.x-1.x and will release a new version shortly.

rfay’s picture

There's still a problem in there, so don't roll a new release quite yet. I'll get to it later today I expect.

bgm’s picture

Status: Fixed » Needs review

I was a bit trigger happy. Thanks for the heads up.

rfay’s picture

Here's a patch that I think resolves the rest of the problem. There was an assumption that the #submit handler could go ahead and drupal_form_submit() the review form... but other modules had not yet had a chance to execute their submit handlers. So this attempts to make uc_optional_checkout_review_uc_cart_checkout_form_submit() the *last* submit handler to run, so that others have already done their duties.

I have tested this with uc_stripe, the free order, and uc_paypal, and it seems to be working OK.

  • bgm committed c9ccbfb on authored by rfay
    Issue #2040205 by rfay: Skip Checkout Review Also Skips PayPal WPS...
bgm’s picture

Status: Needs review » Fixed

@rfay: thanks again for the patch. I committed it to git. You are also now an honorary module maintainer, if you have no objection :)

rfay’s picture

I'm honored :-) I'll post patches where necessary, and if you give the go I can commit if that helps out.

bgm’s picture

Having reviewed your patches so far and checked your user profile on d.o, feel free to commit!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.