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.
Page 1 of 1
Bluepay badly broken under PHP5
#2
Posted 26 June 2006 - 12:03 AM
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
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
#3
Posted 07 July 2006 - 07:39 PM
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.
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.
Share this topic:
Page 1 of 1


Help
Back to top
MultiQuote








