forked from braintree/braintree_android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set error message on ThreeDSecureInfo when 3DS challenge fails (brain…
…tree#419) * Set error message on ThreeDSecureInfo when customer fails 3DS authentication
- Loading branch information
Showing
11 changed files
with
333 additions
and
170 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
Braintree/src/androidTest/assets/fixtures/three_d_secure/2.0/authentication_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"paymentMethod": { | ||
"type": "CreditCard", | ||
"nonce": "ceff1c43-0274-010d-6b0e-e15544dd8583", | ||
"description": "ending in 91", | ||
"consumed": false, | ||
"threeDSecureInfo": { | ||
"liabilityShifted": true, | ||
"liabilityShiftPossible": true, | ||
"status": "authenticate_successful", | ||
"enrolled": "Y", | ||
"cavv": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=", | ||
"xid": null, | ||
"eci_flag": "05", | ||
"three_d_secure_version": "2.1.0", | ||
"ds_transaction_id": "e1aaed8b-4c2e-4e50-b6a9-8d48779c90b3", | ||
"acs_transaction_id": "e2f621db-b23a-4b0a-983c-91f72b23d16b", | ||
"three_d_secure_server_transaction_id": "d6909f17-6a92-4ea1-9148-5499677dee60", | ||
"pares_status": "Y", | ||
"acsTransactionId": "e2f621db-b23a-4b0a-983c-91f72b23d16b", | ||
"dsTransactionId": "e1aaed8b-4c2e-4e50-b6a9-8d48779c90b3", | ||
"eciFlag": "05", | ||
"paresStatus": "Y", | ||
"threeDSecureServerTransactionId": "d6909f17-6a92-4ea1-9148-5499677dee60", | ||
"threeDSecureVersion": "2.1.0", | ||
"lookup": { | ||
"transStatus": "C", | ||
"transStatusReason": null | ||
}, | ||
"authentication": { | ||
"transStatus": "Y", | ||
"transStatusReason": null | ||
} | ||
}, | ||
"details": { | ||
"bin": "400000", | ||
"lastTwo": "91", | ||
"lastFour": "1091", | ||
"cardType": "Visa", | ||
"expirationYear": "2022", | ||
"expirationMonth": "01" | ||
}, | ||
"bin_data": { | ||
"prepaid": "Unknown", | ||
"healthcare": "Unknown", | ||
"debit": "Unknown", | ||
"durbin_regulated": "Unknown", | ||
"commercial": "Unknown", | ||
"payroll": "Unknown", | ||
"issuing_bank": "Unknown", | ||
"country_of_issuance": "Unknown", | ||
"product_id": "Unknown" | ||
} | ||
}, | ||
"threeDSecureInfo": { | ||
"liabilityShifted": true, | ||
"liabilityShiftPossible": true | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...rc/androidTest/assets/fixtures/three_d_secure/2.0/authentication_response_with_error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"attribute": "three_d_secure_token", | ||
"message": "Failed to authenticate, please try a different form of payment.", | ||
"model": "transaction", | ||
"type": "user", | ||
"code": "81571" | ||
} | ||
], | ||
"threeDSecureInfo": { | ||
"liabilityShifted": false, | ||
"liabilityShiftPossible": true | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
...ts/fixtures/three_d_secure/2.0/authentication_response_with_liability_shift_possible.json
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ee/src/androidTest/assets/fixtures/three_d_secure/authentication_response_with_error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"error": { | ||
"message": "Failed to authenticate, please try a different form of payment" | ||
"message": "Failed to authenticate, please try a different form of payment." | ||
}, | ||
"fieldErrors":[], | ||
"threeDSecureInfo": { | ||
"liabilityShifted": false, | ||
"liabilityShiftPossible": false | ||
"liabilityShiftPossible": true | ||
}, | ||
"success": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.