Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pay by check/money order fails to display Checkout_success.php


odlahorde

Recommended Posts

Posted

Hello folks.

 

Please see below for the application base details.

Here's the issue.

 

First the good news:

Pay by paypal appears to work (still need to test end to end processing of the orders in our preprod environment. ....)

 

The bad news:

when the customer selects "pay by check/money order"

The order goes through, and an "order process" email goes to the admin and the customer.

The problem is that when the order is placed, instead of going to the checkout_success.php page, we get the following error:

Parse error: syntax error, unexpected $end in S:\Core\htdocs\docs\business\dragonshordeshop\catalog-preprod\checkout_success.php on line 202

 

 

Since this is preprod, we have the paypal IPN payment module pointed to PayPal's "sandbox". With it pointing to the sandbox paypal link, we can't get a completion of payment from paypal, and therefore we do not get to the checkout success page there either.

(though once again we are getting the order placed into the system, so we have an order to go by for the product request.

 

Rather than trying to test this out in production, we're looking for feedback... our hope of course being that some one can tell us where we have strayed from the "straight and narrow" so that we can make this work.

 

Has anyone else run into this problem when using the pay by check/money order? if so, how did you get around this?

 

App. information:

 

Server Host: (192.168.1.7) Database Host: dragonshorde (192.168.1.7)

Server OS: Database: MySQL 5.0.18-nt-log

Server Date: 01/17/2010 00:35:08 Datebase Date: 01/17/2010 00:35:07

Server Up Time:

HTTP Server: Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.8a PHP/5.1.2

PHP Version: 5.1.2 (Zend: 2.1.0)

[osCommerce Online Merchant v2.2 RC1]

osCommerce Online Merchant v2.2 RC1

Posted

That error usually means you have a coding error, normally caused by unmatched curly braces ( { and } ) in the code.

 

They must appear in equal number in the active code.

 

If you can't fix it yourself you'll need to post the code from the entire file.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thanks.

 

I found the $end error on another forum post, about an hour after submitting this one.

 

I was able to locate the problem in the checkout_success.php file.

It was a copy / paste error.

There was a mismatch on the number of { & } marks.

I re-added a } to an if clause, and it is working now.

Thanks for your assistance everyone.

 

--Rob

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...