cancel
Showing results for 
Search instead for 
Did you mean: 

DPM capture after authorize

Hello,

 

I am desperate, are there any samples for PHP, capturing transaction after it was authorized only and I have transaction_id and authorize_code.  I am looking for something like  this , but for DPM.

This is code for AIM

 

public function authorizeOnly($amount = false, $card_num = false, $exp_date = false)
{
($amount ? $this->amount = $amount : null);
($card_num ? $this->card_num = $card_num : null);
($exp_date ? $this->exp_date = $exp_date : null);
$this->type = "AUTH_ONLY";
return $this->_sendRequest();
}

public function captureOnly($auth_code = false, $amount = false, $card_num = false, $exp_date = false)
{
($auth_code ? $this->auth_code = $auth_code : null);
($amount ? $this->amount = $amount : null);
($card_num ? $this->card_num = $card_num : null);
($exp_date ? $this->exp_date = $exp_date : null);
$this->type = "CAPTURE_ONLY";
return $this->_sendRequest();
}

 

Help? Ayone?

Will be much appreciated.

shupik
Member
1 REPLY 1
Hi,
 
DPM is only for transactions where customer interaction is required. It is not used for transaction types such as Prior Auth Capture, Void, or Refund.
 
Thanks,
Joy
Joy
Administrator Administrator
Administrator