-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AVSResponseCode type and constants.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,28 @@ | ||
package braintree | ||
|
||
type AVSResponseCode string | ||
|
||
const ( | ||
// The postal code or street address provided matches the information on file with the cardholder's bank. | ||
AVSResponseCodeMatches AVSResponseCode = "M" | ||
|
||
// The postal code or street address provided does not match the information on file with the cardholder's bank. | ||
AVSResponseCodeDoesNotMatch AVSResponseCode = "N" | ||
|
||
// The card-issuing bank received the postal code or street address but did not verify whether it was correct. | ||
// This typically happens if the processor declines an authorization before the bank evaluates the postal code. | ||
AVSResponseCodeNotVerified AVSResponseCode = "U" | ||
|
||
// No postal code or street address was provided. | ||
AVSResponseCodeNotProvided AVSResponseCode = "I" | ||
|
||
// AVS information was provided but the card-issuing bank does not participate in address verification. | ||
// This typically indicates a card-issuing bank outside of the US, Canada, and the UK. | ||
AVSResponseCodeNotSupported AVSResponseCode = "S" | ||
|
||
// A system error prevented any verification of street address or postal code. | ||
AVSResponseCodeSystemError AVSResponseCode = "E" | ||
|
||
// AVS information was provided but this type of transaction does not support address verification. | ||
AVSResponseCodeNotApplicable AVSResponseCode = "A" | ||
) |