Parse error: syntax error, unexpected '||' (T_BOOLEAN_OR), expecting ')' in /home/FOO/public_html/sites/all/modules/commerce_paypal/modules/checkout/commerce_paypal_checkout.module on line 925

I get this error trying to enable paypal_checkout. Everything else installed fine.

CommentFileSizeAuthor
#4 3174254-4.redirect_form_validate.patch860 bytesrszrama
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jo1ene created an issue. See original summary.

jo1ene’s picture

Issue summary: View changes
mmjvb’s picture

Confirmed:

if (empty($order->data['commerce_paypal_checkout']['remote_id'] ||
    !isset($order->data['commerce_paypal_checkout']['flow']))) {

should read

if (empty($order->data['commerce_paypal_checkout']['remote_id']) ||
    !isset($order->data['commerce_paypal_checkout']['flow'])) {
rszrama’s picture

Status: Active » Needs review
FileSize
860 bytes

Patch attached; went looking in the .install file, but mmjvb's comment was enough to help me find it. : )

  • rszrama committed c79fbfe on 7.x-2.x
    Issue #3174254 by rszrama, mmjvb: Error validating a return response for...
rszrama’s picture

Title: Error on Install » Error validating a return response for a PayPal Checkout payment
Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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