phpBMS

Ticket #385 (assigned enhancement)

Opened 2 years ago

Last modified 2 years ago

Name on card - no place to store it

Reported by: anonymous Owned by: brieb
Priority: minor Milestone: Future Releases
Component: phpbms Version: 0.96
Keywords: Cc:

Description

If the name on the card someone is paying with differs from the client name, there is no place to store it. If there is a ccnumber and ccexpiration (which btw I think should be broken up into month and year) in invoices, there should also be a ccname IMHO.

Change History

Changed 2 years ago by anonymous

Thought this might be useful, this is the code I'm using to work around this:

if ($objClient->Firstname . " " . $objClient->Lastname != f("cardname")) {
	$arrName = explode(" ", f("cardname"));
	switch (count($arrName)) {
	case 2 :
		$objClient->Firstname = $arrName[0];
		$objClient->Lastname = $arrName[1];
		break;
	case 3 :
		$objClient->Firstname = $arrName[0];
		$objClient->Lastname = $arrName[2];
		break;
	default :
		$objClient->Firstname = "";
		$objClient->Lastname = f("name");
	}
	$objClient->Save();
}

Pardon the qcubed object and f function but the general idea is to allow for entries that include a middle initial or just general junk. This is for a public interface with the BMS system.

Changed 2 years ago by anonymous

oh that last

$objClient->Lastname = f("name");

should be

$objClient->Lastname = f("cardname");

Changed 2 years ago by brieb

  • status changed from new to assigned
  • milestone changed from unknown to Future Releases

Changed 2 years ago by brieb

  • type changed from defect to enhancement
Note: See TracTickets for help on using tickets.
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.