IPB

Welcome Guest ( Log In | Register )

Advertise Here Advertise Here

IMPORTANT NOTICE: These forums have been provided for customer to customer support/discussion. CubeCart staff members may not frequent these forums regularly so please do not expect an official reply. If you have a sales or support question please submit a ticket via our helpdesk and a member of staff will get back to you during office hours.

 
Reply to this topicStart new topic
Bluepay badly broken under PHP5
kompiler
post Jun 15 2006, 02:54 AM
Post #1





Group: Members
Posts: 2
Joined: 26-March 06
Member No.: 57,611



The official bluepay module is badly broken under PHP5, there are numerous coding mistakes, for example PHP5 explicitly states class constants CAN NOT be a variable, a function call or other dynamic data however if you look at the BP20-PHP5.php file we see:

if($module['test']==1){
const MODE = 'TEST'; // either TEST or LIVE
} else {
const MODE = 'LIVE'; // either TEST or LIVE
}

const ACCOUNT_ID = $module['accNo']; // the default account id
const SECRET_KEY = $module['key']; // the default secret key

None of this is valid PHP5 and all of it will cause parse errors.

First the conditional for the MODE is not allowed in a PHP 5 class, second ACCOUNT_ID and SECRET_KEY are both assignments from variables which is explicitly not allowed in PHP5.

I might understand if this was a non profit open source project but this is supposed to be a commericial project, at least somewhat and I expect included functionality to be at least lightly tested or removed.

This makes me seriously reconsider the quality of the code through the rest of the project and the decision to use cube cart at all, let alone recommend anyone purchase it.
Go to the top of the page
 
+Quote Post
DayByDay
post Jun 26 2006, 12:03 AM
Post #2





Group: Members
Posts: 29
Joined: 21-June 06
Member No.: 63,703



Why is no one answering this guy--or commenting? I have a serious issue with a bad parse and I'm wondering the same thing as kompiler---

I am going to mention it here--but also go elsewhere (so don't jump on me if you see this twice) but my whole cart is inaccesaable and this is the message on the screen:


Parse error: syntax error, unexpected $end in /hsphere/local/home/dybyday/day-by-day.org/cubecart/language/en/lang.inc.php on line 989

what is this? and where do i go from here? i need help fst (that's why I will start anew thread if I can't answer to this. the whole site was fine 2 hours ago--I did nothing to the file. Can any one help?

there is no button on the bottom for me to watch this tread--I missed it on the first goand there is no such option in the edit mode so I won't know if anyone answers--can you drop me a notice in the pm if you know what happened to my site? thanks. Shelly
Go to the top of the page
 
+Quote Post
DayByDay
post Jul 7 2006, 07:39 PM
Post #3





Group: Members
Posts: 29
Joined: 21-June 06
Member No.: 63,703



Hello kompiler and others who are having problems with bluepay mods--

Mine don't work and customers get a weird page when they try to make a purchse through bluepay--customers get this when they process their card:

Response: TRANS_ID=&STATUS=E&AVS=&CVV2=&MESSAGE=CARD%20ACCOUNT%20NOT%20VALID&AUTH_CODE=&REBID=
TransId:
Status: E
AVS Resp:
CVV2 Resp:
Auth Code:
Message: approved
Rebid:

The blue pay tech said it was problem with cubecart's coding! imagine that? BP is contacting cubecart to find a fix. Since they advertise that they work together--it shouldn't be broken.

I reported what Komplier wrote about the moduales to the tech from bluepay who is helping me solve this. and this was his response:

There is no "official Bluepay module" for PHP5. There *IS* official Bluepay
*SAMPLE* code for PHP5 -- which is only "official" in that it can be gotten
from us directly. The PHP5 sample code, however, was NOT developed by us,
and the documentation of the module makes this clear. It is also SAMPLE
code, not intended to be used by CubeCart or anyone else without review and
modification. It's intended to be an illustrated guide to integrating with
Bluepay, not the integration itself.
-Chris


In addition, i congiured bluepay to be a 'test" but my transactions went through live--again, the tech said that the cart has to be put on test for them to receive it as a test. He thought I configured it wrong, but I had it on "test" all the while. Now I have credit card charges because cc configs are not working.

thank you and I hope this helps some folks.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 9th February 2010 - 02:35 AM