Template:Pin Pad API Sequence
From Payment Processing Software Library
- Get track data from the MSR.
- Get the account number from the track data
- Use the account number and the amount to call pinpadRequestEntry
- Call pinpadGetPINBlock to get the PIN Block
- Call pinpadGetDUKPTValue to get the DUKPT Value
- Call pinpadGetKeyPointer to get the Key Pointer
- Call pinpadShowDone to show "Thank You" on the pinpad
- Call the normal functions for a transaction, such as setTrackData, setAmount (Do not call setAccountNumber since it is for manual keyed transactions and Debit does not support manual entry)
- Call setPINBlock again to pass the PIN Block to the transaction buffer
- Call setDUKPTValue to pass the DUKPT Value to the transaction buffer
- Call setKeyPointer to pass the Key Pointer to the transaction buffer
- Call setCashBackAmount, setSurchargeAmount if there are any.
- Call sale to perform the debit transaction.
→ Note: debit only supports sale, refund and inquiry transactions.