Test Cards List

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Barclaycard Smartpay B

Test Cards and Test Data

Document Ref. 0785 - Summary


Specifies the test cards and test data that can be used with the
Barclaycard Smartpay staging environment.

Version 04 draft B
2 July 2018

Restricted - External
Document history

© 2018 Barclays Bank PLC

All rights reserved. No part of this document shall be reproduced, stored in a retrieval system, or transmitted by any means,
electronic, mechanical, photocopying, recording, or otherwise, without written permission of Barclays Bank PLC.

Document history
Ver Date Description
01 02 Nov 2016 Initial client release.

01.01 25 Apr 2017 Document template/styles updated.

02 28 Sep 2017 Added ISO Standard Response Codes A1


Removed Visa Corporate and Purchasing test cards as these are not supported 2.1
Added Visa Debit test cards 2.1

03 27 Mar 2018 Reinstated APACS auth request test data removed in error in previous version A1
Any amount ending in 98 pence returns a manual auth response A1
Expanded list of acquirer response codes A2
Added the PagePage response screen for amount 335 A1
Removed CV_DATA (CSC) as repeats value 3xxxx in A1 (was A3 )
Removed test cards/data with known issues 2.1, A1, A3

04A-B 02 July 2018 Removed test data 335 as it is no longer supported in Staging environment - A1 A1 Formatted: Font: Italic

ii of 15 Barclaycard Smartpay B Test Cards and Test Data v04 draft B

Restricted - External
Table of contents

Table of contents
Document history ii
Table of contents iii
Chapter 1 - Introduction 5
Chapter 2 - Processing test transactions 7
2.1 Test card details 7
2.2 Test 3-D Secure password and response 8
Chapter 3 - Processing test refunds 9
3.1 Locating a transaction to refund 9
3.2 Performing a refund 9
3.2.1 Via the portal 9
3.2.2 Via web services 10
Appendix A - Test data 11
A1 Authorisation requests (APACS) 11
A2 Response codes 12
A3 Account verification 15

Barclaycard Smartpay B Test Cards and Test Data v04 draft B iii of 15

Restricted - External
Chapter 1 - Introduction

Chapter 1 - Introduction
Before you can start processing online payments through your Barclaycard Smartpay Live environment, you’ll need to process
some test transactions through your Staging environment. These tests will help you become more familiar with our system,
and you can also check the integration was implemented properly. Use the test card details we’ve supplied below for your
tests., Do notdon’t use real card details. Comment [TL:B1]: Emphasised
based on the importance of the
By using the supplied test card numbers and test data you can simulate various types of transactions and their response instruction.
conditions. Formatted: Font: Bold

Barclaycard Smartpay B Test Cards and Test Data v04 draft B 5 of 15

Restricted - External
Chapter 2 - Processing test transactions

Chapter 2 - Processing test transactions

2.1 Test card details


Use any of the card details below to process your test transactions. For test data that you can use to simulate various
transaction responses, please see Appendix A - Test dataTest data. Formatted: Font: Italic, Pattern: Clear
(White)
Note: There may be scenarios where you need to perform different testing depending on the country of issue of a certain
card scheme. To that end, we have provided both UK and international maestro test card numbers.

Card Type Card Number (PAN) Expected 3-D


Secure Response
Amex Credit 374691000000004 0

Amex Credit 374691000000012 1

Amex Credit 374691000000020 2

Amex Credit 374691000000038 4

Amex Credit 374691000000046 6

Maestro 675914000000000004 0

Maestro 675914000000000012 1

Maestro 675914000000000020 2

Maestro 675914000000000038 4

Maestro (International) 679999000000000004 0

Maestro (International) 679999000000000012 1

Maestro (International) 679999000000000038 2

Maestro (International) 679999000000000046 4

Mastercard Credit 5101110000000020 2

Mastercard Debit 5573750000000022 2

UK Visa Electron 4001150000000004 0

UK Visa Electron 4001150000000012 1

UK Visa Electron 4001150000000020 2

UK Visa Electron 4001150000000038 4

UK Visa Electron 4844070000000005 0

UK Visa Electron 4844070000000013 1

UK Visa Electron 4844070000000021 2

UK Visa Electron 4844070000000039 4

Visa Credit 4008800000000007 0

Visa Credit 4008800000000015 1

Visa Credit 4008800000000023 2

Visa Credit 4008800000000031 4

Visa Debit 4094000000000009 0

Visa Debit 4094000000000017 1

Visa Debit 4094000000000025 2

Barclaycard Smartpay B Test Cards and Test Data v04 draft B 7 of 15

Restricted - External
Chapter 2 - Processing test transactions

Card Type Card Number (PAN) Expected 3-D


Secure Response
Visa Debit 4094000000000033 4

 Expiry date: Any date will work.

 CVV: Any number will work, as long as the number of digits used is correct.

2.2 Test 3-D Secure password and response


When the Smartpay payment page prompts for a 3-D Secure password, just click the Smartpay logo and this will simulate
entry of a password. The following table defines the 3-D Secure responses codes listed above.

3-D Secure Response code title 'status' field value returned in


response code authenticationResponse
0 Authentication Failed NOT_AUTHENTICATED

1 Successful Authentication AUTHENTICATED

2 Cardholder Not Enrolled NOT_ENROLLED

4 Valid Authentication Attempted AUTHENTICATION_ATTEMPTED

6 ACS Error ACS_ERROR

You must ensure that your website can handle each of these responses sent by Barclaycard Smartpay back to your site.

8 of 15 Barclaycard Smartpay B Test Cards and Test Data v04 draft B

Restricted - External
Chapter 3 - Processing test refunds

Chapter 3 - Processing test refunds

3.1 Locating a transaction to refund


Log back into the Barclaycard Smartpay Portal using your login details and from the menu select Payments > Transactions
and settlements. Choose the transaction you’d like to refund and click on the successful payment, release and authorise. All
transactions should now be listed.

3.2 Performing a refund


3.2.1 Via the portal
For refunds in the Barclaycard Smartpay Portal, the transaction can be refunded from the transaction report page ( Payments
> Transactions and settlements). Click on the menu icon on the right-hand side of a transaction line, then select Refund (see
Figure 1 - Refund menu optionFigure 1 - Refund menu option). Formatted: Font: Italic

Transactions can be refunded for the full or partial amount. There’s no limit on how many refunds can be performed.

Figure 1 - Refund menu option


Please ensure that you do not refund more than the original total transaction amount as there is no validation to check that
the partial amount doesn't exceed the original amount (see Figure 2 - Partial refund validationFigure 2 - Partial refund Formatted: Font: Italic
validation).

Barclaycard Smartpay B Test Cards and Test Data v04 draft B 9 of 15

Restricted - External
Chapter 3 - Processing test refunds

Figure 2 - Partial refund validation


To view the refunds, click on the transactions. At the bottom of the transaction details you can see a history for that
transaction (see Figure 3 - Refunds historyFigure 3 - Refunds history). Formatted: Font: Italic

Figure 3 - Refunds history

3.2.2 Via web services


For refunds direct from the merchant, this is done using the updateWebPayment web service call with an AuthType of 'refund'
and using the transaction reference from the original transaction. Refunds can only be performed against an existing
transaction. There is no limit on how many refunds can be performed. There is no validation to make sure that the partial
amount doesn't exceed the original amount. This refund can be viewed in the Barclaycard Smartpay Portal.

For further information, please refer to the Smartpay B SOAP Web Services Integration Guide.

10 of 15 Barclaycard Smartpay B Test Cards and Test Data v04 draft B

Restricted - External
Appendix A - Test data

Appendix A - Test data


Before using this test data ensure that you've selected the Staging environment in your Barclaycard Smartpay Portal.

A1 Authorisation requests (APACS)


By using these special amounts in a transaction, Smartpay will simulate the type of response indicated.

Note: US = Unit Separator (ASCII character code 0x1F).

The response codes are defined for each acquirer in A2 Response codesResponse codes. Formatted: Font: Italic

Amount Response
1300 Returns an unexpected message type without a host field response, but includes STX and ETX.

1301 Returns an unexpected message type without a host field response.

1302 Returns '08' as the response code.

1303 Returns unexpected message type with a message copied from real example, includes FS, STX and ETX.

1783 Any auxiliary data present in the request is echoed back in the response.

5700 Any auxiliary data present in the request is echoed back in the response.

220x Hold message. Where 'x' is the number of hold messages to send before sending the actual response.

222 Referred response (add referral telephone number).

223 Referred response (add referral telephone number), also include 0000 authorisation code.

2502 Referred response (add referral telephone number).

224 Referred response (no referral telephone number).

331 Referred response but no referral number, only "refer" in the message. Returns response code '02'.

332 Referred response but no referral number, only "call" in the message. Returns response code '02'.

5900 Referral telephone number contains a single US (terminal should use its own telephone number).

5901 Referral telephone number in the format A US B

5902 Referral telephone number in the format A US B US C

333 Keep the card (hot list). Returns response code '05'.

334 Declined.

336 Declined with message 'RETAIN CARD'.

444 Close socket after request (internal simulator throws write error).

9xxyy To test response codes, where yy is the response code and xx is a code to indicate acquirer specific
behaviours:
02 - Amex: set response message to PICK UP CARD

5801 Response has additional data set to 100000 (for an authorisation request received with CV2 data which the
acquirer doesn't check).

5957 Always returns a response with no ICC details.

5959 Return auxiliary data 10 (subtype 01 only) for Visa.

5960 Return auxiliary data 10 (subtype 01 and 02) for Visa.

5961 Return auxiliary data 10 (subtype 01 only) for Mastercard.

Barclaycard Smartpay B Test Cards and Test Data v04 draft B 11 of 15

Restricted - External
Appendix A - Test data

Amount Response
5962 Return auxiliary data 10 (subtype 01 and 02) for Mastercard.

5963 Return auxiliary data 10 with invalid subtype 01 (shorter than 5 characters).

5964 Return auxiliary data 10 (subtype 01 and 02) for VISA with subtype 10 shorter than maximum length 15.

5965 Return auxiliary data 10 (subtype 01 and 02) for Mastercard with subtype 10 shorter than maximum length 9.

2257 Returns a malformed message.

A2 Response codes
The following response codes are referenced in the table above. Please note that not all codes/acquirers are simulated.

Acquirers may assign different descriptions to these codes; please refer to your acquirer's documentation for their specific
usage.

Response ISO Standard Response Code Description


Code
00 0000, "Approved" Approved

01 1801, "Referred, unable to process transaction" Do not honour

02 1801, "Referred, unable to process transaction" Unable to process transaction

03 1009, "Declined, invalid merchant ID" Do not honour

04 2000, "Do not honour" Do not honour

05 1833, "" Do not honour

06 1801, "Referred, unable to process transaction" Do not honour

07 1801, "Referred, unable to process transaction" Do not honour

08 0000, "Approved" Do not honour

09 1801, "Referred, unable to process transaction" Do not honour

10 1801, "Referred, unable to process transaction" Do not honour

11 1801, "Referred, unable to process transaction" Do not honour

12 9102, "Invalid transaction" Do not honour

13 1010, "Declined, invalid amount" Do not honour

14 1011, "Declined, invalid card number" Do not honour

15 1801, "Referred, unable to process transaction" Do not honour

16 1801, "Referred, unable to process transaction" Do not honour

17 1801, "Referred, unable to process transaction" Do not honour

18 1801, "Referred, unable to process transaction" Do not honour

19 9103, "Re-enter transaction" Do not honour

20 1801, "Referred, unable to process transaction" Do not honour

21 1801, "Referred, unable to process transaction" Do not honour

22 1801, "Referred, unable to process transaction" Do not honour

23 1801, "Referred, unable to process transaction" Do not honour

24 1801, "Referred, unable to process transaction" Do not honour

25 1801, "Referred, unable to process transaction" Do not honour

12 of 15 Barclaycard Smartpay B Test Cards and Test Data v04 draft B

Restricted - External
Appendix A - Test data

Response ISO Standard Response Code Description


Code
26 1801, "Referred, unable to process transaction" Do not honour

27 1801, "Referred, unable to process transaction" Do not honour

28 1801, "Referred, unable to process transaction" Do not honour

29 1801, "Referred, unable to process transaction" Do not honour

30 1000, "Declined" Do not honour

31 1801, "Referred, unable to process transaction" Do not honour

32 1801, "Referred, unable to process transaction" Do not honour

33 1801, "Referred, unable to process transaction" Do not honour

34 1801, "Referred, unable to process transaction" Do not honour

35 1801, "Referred, unable to process transaction" Do not honour

36 1801, "Referred, unable to process transaction" Do not honour

37 1801, "Referred, unable to process transaction" Do not honour

38 1801, "Referred, unable to process transaction" Do not honour

39 1801, "Referred, unable to process transaction" Do not honour

40 1801, "Referred, unable to process transaction" Do not honour

41 1032, "Declined, stolen card" Do not honour

42 1801, "Referred, unable to process transaction" Do not honour

43 1032, "Declined, stolen card" Do not honour

44 1801, "Referred, unable to process transaction" Do not honour

45 1801, "Referred, unable to process transaction" Do not honour

46 1801, "Referred, unable to process transaction" Do not honour

47 1801, "Referred, unable to process transaction" Do not honour

48 1801, "Referred, unable to process transaction" Do not honour

49 1801, "Referred, unable to process transaction" Do not honour

50 1801, "Referred, unable to process transaction" Do not honour

51 1016, "Not sufficient funds" Do not honour

52 1801, "Referred, unable to process transaction" Do not honour

53 1801, "Referred, unable to process transaction" Do not honour

54 2001, "Declined, pick up card" Do not honour

55 1017, "Declined, pick up card" Incorrect PIN

56 1801, "Referred, unable to process transaction" Do not honour

57 1801, "Referred, unable to process transaction" Do not honour

58 1801, "Referred, unable to process transaction" Do not honour

59 1002, "Suspected fraud" Do not honour

60 1801, "Referred, unable to process transaction" Do not honour

61 1801, "Referred, unable to process transaction" Do not honour

62 1801, "Referred, unable to process transaction" Do not honour

Barclaycard Smartpay B Test Cards and Test Data v04 draft B 13 of 15

Restricted - External
Appendix A - Test data

Response ISO Standard Response Code Description


Code
63 1801, "Referred, unable to process transaction" Do not honour

64 1801, "Referred, unable to process transaction" Do not honour

65 1801, "Referred, unable to process transaction" Do not honour

66 1801, "Referred, unable to process transaction" Do not honour

67 1801, "Referred, unable to process transaction" Do not honour

68 1801, "Referred, unable to process transaction" Do not honour

69 1801, "Referred, unable to process transaction" Do not honour

70 1801, "Referred, unable to process transaction" Do not honour

71 1801, "Referred, unable to process transaction" Do not honour

72 1801, "Referred, unable to process transaction" Do not honour

73 1801, "Referred, unable to process transaction" Do not honour

74 1801, "Referred, unable to process transaction" Do not honour

75 1801, "Referred, unable to process transaction" Do not honour

76 1801, "Referred, unable to process transaction" Do not honour

77 1801, "Referred, unable to process transaction" Do not honour

78 1801, "Referred, unable to process transaction" Do not honour

79 1801, "Referred, unable to process transaction" Do not honour

80 1801, "Referred, unable to process transaction" Do not honour

81 1801, "Referred, unable to process transaction" Do not honour

82 1801, "Referred, unable to process transaction" Do not honour

83 1801, "Referred, unable to process transaction" Do not honour

84 1801, "Referred, unable to process transaction" Do not honour

85 0000, "Approved" Do not honour

86 1801, "Referred, unable to process transaction" Do not honour

87 1801, "Referred, unable to process transaction" Do not honour

88 1801, "Referred, unable to process transaction" Do not honour

89 1801, "Referred, unable to process transaction" Do not honour

90 1801, "Referred, unable to process transaction" Do not honour

91 9112, "Issuer not available" Do not honour

92 1819, "Unable to authorise" Do not honour

93 1820, "Unable to authorise" Do not honour

94 9113, "Duplicate reference" Do not honour

95 1801, "Referred, unable to process transaction" Do not honour

96 9109, "System malfunction" Do not honour

97 1801, "Referred, unable to process transaction" Do not honour

98 1801, "Referred, unable to process transaction" Do not honour

99 1801, "Referred, unable to process transaction" Do not honour

14 of 15 Barclaycard Smartpay B Test Cards and Test Data v04 draft B

Restricted - External
Appendix A - Test data

Response ISO Standard Response Code Description


Code
N3 1062, "Cashback not allowed" Do not honour

N4 1063, "Declined, cashback amount exceeded" Do not honour

N7 1801, "Referred, unable to process transaction" Do not honour

R0 1801, "Referred, unable to process transaction" Do not honour

R1 1801, "Referred, unable to process transaction" Do not honour

R3 1801, "Referred, unable to process transaction" Do not honour

A3 Account verification
The following test data can be used to simulate the verification of the CSC and address details.

PAN CSC Postcode Address Response


Numerics Numerics
4000600000000009 739 32 324 Account Verification Approved

4012001037141112 609 21 14 Account Verification Approved

4027770000007772 609 21 14 Account Verification Approved

4012001037484447 450 222 2 Account Verification Approved

4150560000000003 121 22 11 Account Verification Approved

344174180013003 2639 32 324 Account Verification Approved

Barclaycard Smartpay B Test Cards and Test Data v04 draft B 15 of 15

Restricted - External

You might also like