VbzCart/docs/v1/class/vcCartDataManager/CaptureBillingPage: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
imported>Woozle
No edit summary
imported>Woozle
No edit summary
Line 1: Line 1:
{{page/code/class/method}}
{{page/code/class/method}}
==Call Chains==
* {{l/version/method|vcPageContent_ckout|CapturePage}}() [protected] calls...
* {{l/version/method|vcPageContent_ckout|CapturePage}}() [protected] calls...
** {{l/version/method|vcPageContent_ckout|CaptureBilling}}() [protected], which calls...
** {{l/version/method|vcPageContent_ckout|CaptureBilling}}() [protected], which calls...
*** {{hilite|$this->'''CaptureBillingPage'''()}}, which calls...
*** {{l/version/method|vcCartDataManager|GetBuyerObject}}()
*** {{hilite|{{l/version/method|vcCartDataManager|CaptureBillingPage}}()}}, which calls...
**** {{l/version/method|vcCartData_Buyer|CapturePayment}}()
**** {{l/version/method|vcCartData_Buyer|CapturePayment}}()
*** {{l/version/method|vcCartDataManager|UpdateBlob}}($oCD_Buyer)
==Code==
<source lang=php>
public function CaptureBillingPage() {
//echo 'GOT TO CaptureBillingPage()<br>';
//$oCDMgr = $this->FieldsManager();
$oCDMgr = $this;
$oCDMgr->FetchBlob();
$oCD_Buyer = $oCDMgr->GetBuyerObject();
$oCD_Buyer->CapturePayment(); // card #/exp, and I *think* name/address
$this->AddMissing($oCD_Buyer->GetMissingArray());
// calculate resulting blob
$oCDMgr->UpdateBlob($oCD_Buyer);
}</source>

Revision as of 22:38, 21 April 2019

Template:Page/code/class/method

Call Chains

Code

public function CaptureBillingPage() {
	//echo 'GOT TO CaptureBillingPage()<br>';
	//$oCDMgr = $this->FieldsManager();
	$oCDMgr = $this;
	$oCDMgr->FetchBlob();
	
	$oCD_Buyer = $oCDMgr->GetBuyerObject();
	$oCD_Buyer->CapturePayment();	// card #/exp, and I *think* name/address
	$this->AddMissing($oCD_Buyer->GetMissingArray());
	
	// calculate resulting blob
	$oCDMgr->UpdateBlob($oCD_Buyer);
}