Template:Pin Pad API Sequence

From Payment Processing Software Library
Jump to: navigation, search
  1. Get track data from the MSR.
  2. Get the account number from the track data
  3. Use the account number and the amount to call pinpadRequestEntry
  4. Call pinpadGetPINBlock to get the PIN Block
  5. Call pinpadGetDUKPTValue to get the DUKPT Value
  6. Call pinpadGetKeyPointer to get the Key Pointer
  7. Call pinpadShowDone to show "Thank You" on the pinpad
  8. 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)
  9. Call setPINBlock again to pass the PIN Block to the transaction buffer
  10. Call setDUKPTValue to pass the DUKPT Value to the transaction buffer
  11. Call setKeyPointer to pass the Key Pointer to the transaction buffer
  12. Call setCashBackAmount, setSurchargeAmount if there are any.
  13. Call sale to perform the debit transaction.

→ Note: debit only supports sale, refund and inquiry transactions.