Testing Gift Card Transactions

Use the following Certification tests to verify transactions associated with the Private Label Gift Card functionality. The tests are designed so that you can verify your XML structure for each transaction type, as well as your ability to parse the response data.

To test the Gift Card functionality using the data supplied in Table 2-28:

When processing gift cards, many transactions response messages include the refCode, sequenceNumber, systemTraceId, and txnTime elements. You should always store these values for possible use in subsequent transactions. For example, to perform the giftCardCapture in test GC2A, you must include the values returned for these elements in the associated authorization transaction, GC2.

  1. Submit an activate transaction for Order Id GC1. Verify that the data in the response message matches the Key Response Elements specified in the table.

  2. Submit an activate transaction for Order Id GC1A. This transaction activates a Virtual Gift Card. Verify that the data in the response message matches the Key Response Elements specified in the table.

  3. Submit an authorization transaction for Order Id GC2. Verify that the data in the response message matches the Key Response Elements specified in the table.

  4. Submit a giftCardCapture transaction for Order Id GC2A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  5. Submit a giftCardCredit transaction for Order Id GC2B. Verify that the data in the response message matches the Key Response Elements specified in the table.

  6. Submit a deactivate transaction for Order Id GC3. Verify that the data in the response message matches the Key Response Elements specified in the table.

  7. Submit a load transaction for Order Id GC4. Verify that the data in the response message matches the Key Response Elements specified in the table.

  8. Submit a unload transaction for Order Id GC5. Verify that the data in the response message matches the Key Response Elements specified in the table.

  9. Submit a balanceInquiry transaction for Order Id GC6. Verify that the data in the response message matches the Key Response Elements specified in the table.

  10. Submit an activate transaction for Order Id GC7. Verify that the data in the response message matches the Key Response Elements specified in the table.

  11. Submit an activateReversal transaction for Order Id GC7A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  12. Submit an activateReversal transaction for Order Id GC1A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  13. Submit an authorization transaction for Order Id GC8. Verify that the data in the response message matches the Key Response Elements specified in the table.

  14. Submit an authorizationReversal transaction for Order Id GC8A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  15. Submit a sale transaction for Order Id GC9. Verify that the data in the response message matches the Key Response Elements specified in the table.

  16. Submit a depositReversal transaction for Order Id GC9A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  17. Submit a sale transaction for Order Id GC10. Verify that the data in the response message matches the Key Response Elements specified in the table.

  18. Submit a giftCardCredit transaction for Order Id GC10A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  19. Submit a refundReversal transaction for Order Id GC10B. Verify that the data in the response message matches the Key Response Elements specified in the table.

  20. Submit a deactivate transaction for Order Id GC11. Verify that the data in the response message matches the Key Response Elements specified in the table.

  21. Submit a loadReversal transaction for Order Id GC12. Verify that the data in the response message matches the Key Response Elements specified in the table.

  22. Submit an unload transaction for Order Id GC13. Verify that the data in the response message matches the Key Response Elements specified in the table.

  23. Submit an unloadReversal transaction for Order Id GC13A. Verify that the data in the response message matches the Key Response Elements specified in the table.

  24. Submit an activate transaction for Order Id GC14. This transaction is declined with a response code of 301 - Invalid Account Number. Verify that the data in the response message matches the Key Response Elements specified in the table.

  25. Submit an activate transaction for Order Id GC15. This transaction is declined with a response code of 217 - Already active, because it attempts to activate the same card already activated in Order Id GC1. Verify that the data in the response message matches the Key Response Elements specified in the table.

  26. Submit an authorization transaction for Order Id GC16. This transaction is declined with a response code of 110 - Insufficient Funds. Verify that the data in the response message matches the Key Response Elements specified in the table.

  27. Submit an authorization transaction for Order Id GC17. This transaction is declined with a response code of 281 - Card not active. Verify that the data in the response message matches the Key Response Elements specified in the table.

  28. Submit a sale transaction for Order Id GC19. Verify that the data in the response message matches the Key Response Elements specified in the table.

  29. Submit a giftCardCredit transaction for Order Id GC19A. For this transaction the Declined Transaction report will contain response code of 304 - Lost/Stolen Card.

  30. Submit a balanceInquiry transaction for Order Id GC20. This transaction is declined with a response code of 352 - Invalid CVV2. Verify that the data in the response message matches the Key Response Elements specified in the table.

TABLE 2-28   Private Label Gift Card Test Data

orderId

Supplied Data Elements

Key Response Elements

 

Element

Value

Element

Value

GC1

 

 

 

 

 

 

Activate:

<amount>

<type>

<number>

 

<expDate>

<cardValidationNum>

 

15000

GC

Supplied by Implementation Consultant

1220

123

Activate Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

 

000

Approved

M

15000

 

GC1A

 

 

 

 

Virtual Activate:

<amount>

<accountNumberLength>

<giftCardBin>

 

 

8000

16

Supplied by Implementation Consultant

Activate Response:

<response>

<message>

<availableBalance>

<accountNumber>

 

000

Approved

8000

603571xxxxxxxxxx

GC2

 

 

 

 

 

Authorization:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

1500

GC

Number from GC1

1220

123

Authorization Response:

<response>

<message>

<authCode>

<cardValidationResult>

<availableBalance>

 

000

Approved

11111

M

13500

GC2A

 

 

 

 

 

 

 

 

 

Gift Card Capture:

<cnpTxnId>

<captureAmount>

<type>

<number>

<expDate>

<cardValidationNum>

<originalRefCode>

<originalAmount>

<originalTxnTime>

 

Value from GC2 resp.

1500

GC

Number from GC2

1220

123

refCode from GC2

amount from GC2

txnTime from GC2

Capture Response:

<response>

<message>

 

 

 

 

 

 

 

000

Approved

 

 

 

 

 

 

GC2B

 

 

 

 

 

Gift Card Credit:

<cnpTxnId>

<creditAmount>

<type>

<number>

<expDate>

 

Value from GC2A resp.

500

GC

Number from GC2

1220

Credit Response:

<response>

<message>

 

 

 

000

Approved

 

 

CG3

 

 

 

Deactivate:

<type>

<number>

 

 

GC

Supplied by Implementation Consultant

 

Deactivate Response:

<response>

<message>

<availableBalance>

 

000

Approved

0

GC4

 

 

 

 

 

Load:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

5000

GC

Supplied by Implementation Consultant

0121

123

Load Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

 

000

Approved

M

5000

 

GC5

 

 

 

 

 

Unload:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

2500

GC

Number from GC4

0121

123

Unload Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

000

Approved

M

2500

GC6

 

 

 

 

Balance Inquiry:

<type>

<number>

<expDate>

<cardValidationNum>

 

GC

Number from GC1

0121

123

Balance Inquiry Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

000

Approved

M

2500

GC7

 

 

 

 

 

Activate:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

8000

GC

Supplied by Implementation Consultant

1215

123

Activate Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

000

Approved

M

8000

GC7A

 

 

 

 

 

 

 

 

Activate Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC7 resp.

from GC7

from GC7

from GC7

refCode from GC7

amount from GC7

systemTraceId from GC7

sequenceNumber from GC7

Activate Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC7B

 

 

 

 

 

 

 

 

Activate Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC1A resp.

from GC1

from GC1

from GC1

refCode from GC1A

amount from GC1A

systemTraceId from GC1A

sequenceNumber from GC1A

Activate Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC8

 

 

 

 

 

Authorization:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

2000

GC

Supplied by Implementation Consultant

1220

123

Authorization Response:

<response>

<message>

<authCode>

<cardValidationResult>

<availableBalance>

 

000

Approved

11111

M

4000

GC8A

 

 

 

 

 

 

 

 

Gift Card Auth Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC8 resp.

from GC8

from GC8

from GC8

refCode from GC8

amount from GC8

systemTraceId from GC8

sequenceNumber from GC8

Auth Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC9

 

 

 

 

 

Sale:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

2000

GC

Supplied by Implementation Consultant

1220

123

Sale Response:

<response>

<message>

<authCode>

<cardValidationResult>

<availableBalance>

 

000

Approved

11111

M

8000

GC9A

 

 

 

 

 

 

 

 

Deposit Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC9 resp.

from GC9

from GC9

from GC9

refCode from GC9

amount from GC9

systemTraceId from GC9

sequenceNumber from GC9

Deposit Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC10

 

 

 

 

 

Sale:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

2000

GC

Number from GC9

1220

123

Sale Response:

<response>

<message>

<authCode>

<cardValidationResult>

<availableBalance>

 

000

Approved

11111

M

8000

GC10A

 

 

 

 

 

Gift Card Credit:

<cnpTxnId>

<CreditAmount>

<type>

<number>

<expDate>

 

Value from GC10 resp.

2000

GC

Number from GC9

1220

Credit Response:

<response>

<message>

 

 

 

000

Approved

 

 

GC10B

 

 

 

 

 

 

 

 

Refund Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC10A resp.

from GC10

form GC10

from GC10

refCode from GC10A

amount from GC10A

systemTraceId from GC10A

sequenceNumber from GC10A

Refund Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC11

 

 

 

 

 

 

 

 

Deactivate Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC3 resp.

from GC3

from GC3

from GC3

refCode from GC3 resp.

amount from GC3 resp.

systemTraceId from GC3

sequenceNumber from GC3 resp.

Deactivate Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC12

 

 

 

 

 

 

 

 

Load Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC4 resp.

from GC4

from GC4

form GC4

refCode from GC4 resp.

amount from GC4 resp.

systemTraceId from GC4

sequenceNumber from GC4 resp.

Load Reversal Response:

<response>

<message>

<availableBalance>

 

 

 

 

 

000

Approved

0

 

 

 

 

GC13

 

 

 

 

 

Unload:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

2500

GC

Supplied by Implementation Consultant

0121

123

Unload Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

 

000

Approved

M

1500

 

GC13A

 

 

 

 

 

 

 

 

Unload Reversal:

<cnpTxnId>

<type>

<number>

<expDate>

<originalRefCode>

<originalAmount>

<originalSystemTraceId>

<originalSequenceNumber>

 

Value from GC13 resp.

from GC13

from GC13

from GC13

refCode from GC13 resp.

amount from GC13 resp.

systemTraceId from GC13 resp.

sequenceNumber from GC13 resp.

Unload Reversal Response:

<response>

<message>

 

 

 

 

 

 

000

Approved

 

 

 

 

 

GC14

 

 

 

 

 

Activate:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

15000

GC

Supplied by Implementation Consultant

1221

123

Activate Response:

<response>

<message>

 

 

 

301

Invalid Account Number

 

 

GC15

Activate:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

10000

GC

Number from GC1

1221

123

Activate Response:

<response>

<message>

<availableBalance>

 

 

217

Already active

14000

 

GC16

 

 

 

 

 

 

Authorization:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

1500000

GC

Number from GC1

1221

123

Authorization Response:

<response>

<message>

<cardValidationResult>

<availableBalance>

 

 

352

Decline CVV/CID Fail

M

14000

 

GC17

 

 

 

 

 

Authorization:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

15000

GC

Supplied by Implementation Consultant

1221

123

Authorization Response:

<response>

<message>

 

218

Card not active

GC19

 

 

 

 

 

 

Sale:

<amount>

<type>

<number>

<expDate>

<cardValidationNum>

 

1000

GC

Supplied by Implementation Consultant

1220

123

Sale Response:

<response>

<message>

<authCode>

<cardValidationResult>

<availableBalance>

 

000

Approved

11111

M

1500

GC19A

 

 

 

 

 

Gift Card Credit:

<cnpTxnId>

<creditAmount>

<type>

<number>

<expDate>

 

Value from GC19 resp.

10000

GC

Value from GC19

1220

Credit Response:

<response>

<message>

 

Declined Transaction report result = 304 - Lost/Stolen Card

 

000

Approved

 

 

GC20

 

 

 

 

Balance Inquiry:

<type>

<number>

<expDate>

<cardValidationNum>

 

GC

Number from GC4

0121

476

Balance Inquiry Response:

<response>

<message>

 

 

352

Invalid CVV2