Administration Guide for Oracle Self-Service E-Billing > Configuring Jobs > Payment Job Types >

Configuring a pmtCheckUpdate Job


The pmtCheckUpdate job updates a check's status according to the response from the payment gateway. All files that match the necessary criteria are processed and moved to a history directory under the input directory. This job examine the check_payments table changes the status to Paid of any checks that meet the following criteria:

  • Status is Processed
  • Pay date is five or more days old
  • Not returned

After the job completes processing, it moves all the processed files to a history directory under file input directory.

There are no configuration parameters for the pmtCheckUpdate job.

Automated Clearing House (ACH) Logic

The pmtCheckUpdate job processes return files from ACH, which can include checks from multiple DDNs. The job compares the immediate origin (routing number of the ODFI), immediate destination, immediate origin name, and immediate destination name in the ACH File Header to the same fields that are configured for the ACH payment gateway. If they are the same, pmtCheckUpdate continues processing the ACH return file. If they are not the same, check is ignored.

The order of Immediate Destination and Immediate Origin can be swapped in the ACH return file from what the ACH specification recommends and the pmtCheckUpdate job will still process the file correctly.

For each Batch Header record, pmtCheckUpdate matches the Company Name and Company ID against the payment gateway definition. If they match, then pmtCheckUpdate uses the payment setting of the current DDN used to process this batch. If either one does not match, pmtCheckUpdate searches the Payment Settings of all DDNs. If it finds a DDN setting with the same immediate information and company information, it uses that setting to process the checks in that batch. If it cannot find a match, it raises an exception and the job fails.

For each successful batch header record match, the pmtCheckUpdate job updates the status according to Table 23.

Table 23. Status Changes With the pmtCheckUpdate Job
Status Change
Addenda Type
Amount Field in the First Detail Record
Return

Prenote returned (prenote_returned)

99

0

Prenote error

NOC returned (noc_returned)

98

0

NOC

Processed (processed)

99

A value other than zero (0)

Check error

The pmtCheckUpdate job also updates the status to Paid if there is no return from ACH after the configured number of days. In the configuration settings for an ACH payment gateway, you can change the number of days to wait after the pay date.

TIP:   If pmtCheckUpdate will be processing ACH return files containing multiple DDNs, then the Payment Settings for each payment gateway must have the same immediate origin and immediate destination. Also, each payment gateway used by those DDNs must use the same ACH template files (ACH Template Directory parameter).

ACH Return Types

One return file can have three kinds of returns:

  • Check returns
  • NOC returns
  • Prenote returns

For check returns, the corresponding check in the check_payments table is identified by either payment ID or gateway payment ID. The check status is updated to Returned, and the txn_err_msg field is set to the return code.

Table 24 lists the columns that are updated in the check_payments table after a check return is processed.

Table 24. Columns Updated in the ACH Check Returns Table
Column
Value

last_modify_time

Time that the table was modified.

status

-4

reminded

N

log_id

ID of the exception report in the payment_log table

txn_err_msg

ACH return code

For prenote returns, the corresponding prenote check in the check_payments table is identified by either payment ID or gateway payment ID. The prenote's status is then updated to prenote_returned, and the txn_msg_err column is set to the return code. From the prenote check, the payer_id (which is the user_id column in the payment_accounts table) is used to update payment enrollment information. The payment account with the same user ID and payment account number will be updated to bad_active (account_status column) and txn_message is set to the ACH return code.

Table 25 lists the columns that are updated in the payment_accounts table after a prenote is processed.

Table 25. Columns Updated in the ACH Prenote Returns Parameters Table
Column
Value

txn_message

return ACH code

account_status

bad_active

notify_status

N

NOC Returns

For NOC returns, the corresponding check (which can be either regular or prenote) is identified by either the payment ID or the gateway payment ID. The NOC's payer_id identifies the corresponding account (the Payment module matches it with the user_id column in the payment_accounts table).

If the auto update flag Update Payment enrollment in Case of NOC field was set to true (Y in the Payment Settings, then the corresponding payment account information (routing, account number or account type) is updated based on the NOC code. If the flag is false (N), then the current payment account information is not changed. In either case, the txn_message column populates with the format

NOC_CODE::NEW_ADDENDA_INFO::OLD_ADDENDA_INFO

where:

  • NOC_CODE is the returned NOC code.
  • NEW_ADDENDA_INFO is the correct NOC information returned from ACH (content from position 36 to 64 of addenda record, with white spaces trimmed).
  • OLD_ADDENDA_INFO is the existing or incorrect addenda information with the same format as new_addenda_info and is calculated on current payment account information.

The notify_status field is set to N if Notify NOC flag is set to Y in Payment Settings. If Send Email Notification in Case of NOC is set to Y in Payment Settings, then notify_status is set to N. The Payment module keeps both the old and new payment account addenda information, which allows pmtCheckUpdate to send an email containing both the old and new account information.

Table 26 lists the columns that are updated in the payment_accounts table after a NOC is processed.

Table 26. Columns Updated in the ACH NOC Returns Parameters Table
Column
Value

txn_message

NOC_CODE::NEW_ADDENDA_INFO::OLD_ADDENDA_INFO

account_number

Changed for C01, C03, C06, C07

routing_transit

Changed for C02, C03, C07

account_type

Changed for C05, C06, C07

txn_date

current time

notify_status

N

ACH Return File Format

The ACH return file must not include new lines at the end of each record. To ensure that the ACH return files process correctly, the information listed in Table 27 must return correctly.

Table 27. ACH Return File Format
Column Name
Record
Description

immediateDest

fileHeader

Immediate destination must be the same as the one from original ACH file.

immediateOrigin

fileHeader

Immediate origination must be the same as the one from original ACH file.

immediateDestName

fileHeader

Immediate destination name must be the same as the one from original ACH file.

immediateOriginName

fileHeader

Immediate origination name must be the same as the one from original ACH file.

companyName

batchHeader

Company name must be the same as the one from original ACH file.

companyId

batchHeader

Company ID must be the same as the one from original ACH file.

transactionCode

entryDetail

Refer to the ACH specification.

dfiAcctNumber

entryDetail

Check account number; refer to the ACH specification.

amount

entryDetail

Amount of original check.

individualId

entryDetail

Must be the same as the one from original ACH file.

individualName

entryDetail

Must be the same as the one from original ACH file.

addendaTypeCode

addenda

98: NOC return; 99: check return. Refer to the ACH specification for details.

returnReasonCode

addenda

Return code.

originalEntryTraceNumber

addenda

The trace number of the check from the original file sent to ACH.

originalRDFI

addenda

Copy data from positions 04-11 of the original Entry Detail Record. Refer to the ACH specification.

entryAddendaCount

fileTrailer

Total number of addenda returned in the file.

totalDebitAmount

fileTrailer

Total debit amount in the file.

totalCreditAmount

fileTrailer

Total credit amount in the file.

Administration Guide for Oracle Self-Service E-Billing Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.