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

Capture Method

Sends a capture transaction to the PaymenTech Server.

Syntax

ptechhealthcare.capture(approvalCode, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Capture (Prior Sales) are typically used when a merchant has previously utilized the AuthOnly method. A Capture transaction adds the transaction to the current open batch, and the transaction will be settled at the next call to the PTechHostSettle class's BatchRelease method. The Paymentech system treats Capture and Force transactions identically, so this method may also be used when a merchant has obtained voice approval over the phone.

Manually keyed capture:

class.CardNumber = "4444333322221111" 
class.CardExpMonth = 1
class.CardExpYear = 2010
class.TransactionAmount = "1.00" 
class.Capture("123456") 'value from voice auth or previous AuthOnly trans

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