PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Payment » Payment_Process » Bug #1733

Accessing nonexistant property and constant in Process.php

Details

Submitted2004-06-28 10:20 UTC
Fromaashley at optimiser dot com
Assignedieure
StatusClosed
PackagePayment_Process
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2004-06-28 10:20 UTC] aashley at optimiser dot com

Description:
------------
In Process.php there is an access to $this->_request->_payment->_driver; _driver does not exist, this is called _type on all the Type objects.

Also there is usage of PAYMENT_PROCESS_TYPE_CREDITCARD this constant is not defined anywhere.

Due to these two problems CVV checking will never be done.

patch at:
http://frood.cernun.net/stuff/Process.php-validate.patch

[2004-06-29 01:38 UTC] aashley at optimiser dot com

yeah i did reverse the patch. the two changes in the patch happen at lines 602 and 604 of Process.php.

I'll post an updated version of the patch when i get into the office today.

[2004-06-29 03:13 UTC] aashley at optimiser dot com

the patch at the above URL is now correct.