Direct Payment Integrator V6 - Online Help
Direct Payment Integrator V6
Questions / Feedback?

Capture Method

Sends a capture transaction to the Global Payments Server.

Object Oriented Interface

public function doCapture($pnref);

Procedural Interface

inpaydirect_globalcharge_do_capture($res, $pnref);

Remarks

Capture (Post Auth Capture) transactions are typically used when a merchant has previously utilized the AuthOnly method. A Capture transaction adds the transaction to the current open batch. To process a capture, call Capture with the PNRef parameter set to the PNRef returned in response from the transaction for which you wish to capture and set the TransactionAmount to the amount you wish to capture. You may issue a partial capture for any value up to the original authorized amount. For example: Full Capture:

class.TransactionAmount = "15.00"; // Original authorization was for $15.00, so this is a full capture
class.Capture("1233513541"); // "1233513541" is the PNRef from the original transaction
Partial Capture:
class.TransactionAmount = "10.00"; // Original authorization was for $15.00, so this is a partial capture
class.Capture("1233513541"); // PNRef from the original authorization response

Note: Only one Capture can be processed per AuthOnly. To process a second Capture on an AuthOnly you must first use VoidTransaction to Void the first Capture.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 6.0.6240.0