braintree 2.104.0 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/braintree.gemspec +7 -4
- data/lib/braintree/account_updater_daily_report.rb +1 -1
- data/lib/braintree/address.rb +2 -23
- data/lib/braintree/apple_pay.rb +1 -1
- data/lib/braintree/apple_pay_card.rb +11 -1
- data/lib/braintree/apple_pay_options.rb +1 -1
- data/lib/braintree/authorization_adjustment.rb +1 -1
- data/lib/braintree/base_module.rb +6 -0
- data/lib/braintree/bin_data.rb +9 -2
- data/lib/braintree/client_token.rb +1 -1
- data/lib/braintree/configuration.rb +12 -12
- data/lib/braintree/connected_merchant_paypal_status_changed.rb +1 -1
- data/lib/braintree/connected_merchant_status_transitioned.rb +1 -1
- data/lib/braintree/credit_card.rb +2 -77
- data/lib/braintree/credit_card_gateway.rb +17 -36
- data/lib/braintree/credit_card_verification.rb +18 -5
- data/lib/braintree/credit_card_verification_search.rb +1 -1
- data/lib/braintree/customer.rb +9 -78
- data/lib/braintree/customer_gateway.rb +2 -23
- data/lib/braintree/customer_search.rb +1 -1
- data/lib/braintree/disbursement.rb +1 -1
- data/lib/braintree/{transaction/coinbase_details.rb → dispute/paypal_message.rb} +5 -6
- data/lib/braintree/dispute/{history_event.rb → status_history.rb} +3 -1
- data/lib/braintree/dispute.rb +32 -8
- data/lib/braintree/dispute_gateway.rb +4 -9
- data/lib/braintree/dispute_search.rb +6 -3
- data/lib/braintree/document_upload.rb +1 -1
- data/lib/braintree/enriched_customer_data.rb +21 -0
- data/lib/braintree/error_codes.rb +150 -171
- data/lib/braintree/exceptions.rb +5 -3
- data/lib/braintree/exchange_rate.rb +13 -0
- data/lib/braintree/exchange_rate_quote.rb +24 -0
- data/lib/braintree/exchange_rate_quote_gateway.rb +35 -0
- data/lib/braintree/exchange_rate_quote_input.rb +21 -0
- data/lib/braintree/exchange_rate_quote_request.rb +18 -0
- data/lib/braintree/exchange_rate_quote_response.rb +18 -0
- data/lib/braintree/gateway.rb +4 -14
- data/lib/braintree/{android_pay_card.rb → google_pay_card.rb} +11 -3
- data/lib/braintree/granted_payment_instrument_update.rb +1 -1
- data/lib/braintree/graphql_client.rb +7 -7
- data/lib/braintree/http.rb +4 -3
- data/lib/braintree/local_payment_completed.rb +2 -2
- data/lib/braintree/local_payment_expired.rb +21 -0
- data/lib/braintree/local_payment_funded.rb +22 -0
- data/lib/braintree/local_payment_reversed.rb +19 -0
- data/lib/braintree/merchant.rb +1 -1
- data/lib/braintree/merchant_account.rb +1 -1
- data/lib/braintree/merchant_account_gateway.rb +3 -1
- data/lib/braintree/merchant_gateway.rb +1 -1
- data/lib/braintree/modification.rb +1 -1
- data/lib/braintree/oauth_credentials.rb +1 -1
- data/lib/braintree/oauth_gateway.rb +5 -5
- data/lib/braintree/payment_instrument_type.rb +10 -14
- data/lib/braintree/payment_method_customer_data_updated_metadata.rb +24 -0
- data/lib/braintree/payment_method_gateway.rb +15 -17
- data/lib/braintree/payment_method_nonce.rb +7 -4
- data/lib/braintree/payment_method_nonce_details.rb +37 -0
- data/lib/braintree/payment_method_nonce_details_payer_info.rb +32 -0
- data/lib/braintree/payment_method_nonce_gateway.rb +1 -1
- data/lib/braintree/payment_method_parser.rb +1 -8
- data/lib/braintree/plan.rb +21 -1
- data/lib/braintree/plan_gateway.rb +100 -0
- data/lib/braintree/processor_response_types.rb +3 -3
- data/lib/braintree/resource_collection.rb +8 -3
- data/lib/braintree/revoked_payment_method_metadata.rb +1 -1
- data/lib/braintree/risk_data/liability_shift.rb +22 -0
- data/lib/braintree/risk_data.rb +5 -1
- data/lib/braintree/samsung_pay_card.rb +1 -1
- data/lib/braintree/settlement_batch_summary.rb +2 -2
- data/lib/braintree/subscription.rb +11 -11
- data/lib/braintree/successful_result.rb +3 -2
- data/lib/braintree/test/credit_card.rb +1 -0
- data/lib/braintree/test/nonce.rb +4 -23
- data/lib/braintree/three_d_secure_info.rb +22 -12
- data/lib/braintree/transaction/disbursement_details.rb +1 -0
- data/lib/braintree/transaction/{android_pay_details.rb → google_pay_details.rb} +1 -1
- data/lib/braintree/transaction/installment/adjustment.rb +33 -0
- data/lib/braintree/transaction/installment.rb +28 -0
- data/lib/braintree/transaction/paypal_details.rb +3 -0
- data/lib/braintree/transaction/subscription_details.rb +2 -0
- data/lib/braintree/transaction.rb +65 -120
- data/lib/braintree/transaction_gateway.rb +39 -27
- data/lib/braintree/transaction_line_item.rb +1 -1
- data/lib/braintree/transaction_review.rb +18 -0
- data/lib/braintree/transaction_search.rb +5 -3
- data/lib/braintree/unknown_payment_method.rb +1 -1
- data/lib/braintree/us_bank_account.rb +3 -3
- data/lib/braintree/us_bank_account_verification.rb +1 -1
- data/lib/braintree/us_bank_account_verification_gateway.rb +1 -1
- data/lib/braintree/util.rb +21 -6
- data/lib/braintree/venmo_account.rb +1 -1
- data/lib/braintree/venmo_profile_data.rb +23 -0
- data/lib/braintree/version.rb +2 -2
- data/lib/braintree/visa_checkout_card.rb +2 -2
- data/lib/braintree/webhook_notification.rb +44 -30
- data/lib/braintree/webhook_notification_gateway.rb +5 -5
- data/lib/braintree/webhook_testing_gateway.rb +104 -43
- data/lib/braintree/xml/generator.rb +5 -4
- data/lib/braintree/xml/parser.rb +22 -35
- data/lib/braintree/xml/rexml.rb +4 -5
- data/lib/braintree.rb +28 -23
- data/spec/integration/braintree/add_on_spec.rb +1 -1
- data/spec/integration/braintree/address_spec.rb +30 -113
- data/spec/integration/braintree/advanced_search_spec.rb +45 -45
- data/spec/integration/braintree/apple_pay_spec.rb +3 -3
- data/spec/integration/braintree/braintree_gateway_spec.rb +2 -1
- data/spec/integration/braintree/client_api/client_token_spec.rb +14 -14
- data/spec/integration/braintree/client_api/spec_helper.rb +5 -31
- data/spec/integration/braintree/credit_card_spec.rb +219 -593
- data/spec/integration/braintree/credit_card_verification_search_spec.rb +2 -2
- data/spec/integration/braintree/credit_card_verification_spec.rb +1 -1
- data/spec/integration/braintree/customer_search_spec.rb +8 -8
- data/spec/integration/braintree/customer_spec.rb +484 -513
- data/spec/integration/braintree/dispute_search_spec.rb +35 -6
- data/spec/integration/braintree/dispute_spec.rb +6 -7
- data/spec/integration/braintree/error_codes_spec.rb +1 -1
- data/spec/integration/braintree/exchange_rate_quote_spec.rb +97 -0
- data/spec/integration/braintree/graphql_client_spec.rb +0 -2
- data/spec/integration/braintree/http_spec.rb +2 -2
- data/spec/integration/braintree/merchant_account_spec.rb +28 -29
- data/spec/integration/braintree/merchant_spec.rb +14 -14
- data/spec/integration/braintree/oauth_spec.rb +11 -11
- data/spec/integration/braintree/payment_method_nonce_spec.rb +29 -35
- data/spec/integration/braintree/payment_method_spec.rb +535 -270
- data/spec/integration/braintree/payment_method_us_bank_account_spec.rb +17 -13
- data/spec/integration/braintree/paypal_account_spec.rb +28 -28
- data/spec/integration/braintree/plan_spec.rb +82 -0
- data/spec/integration/braintree/samsung_pay_card_spec.rb +9 -9
- data/spec/integration/braintree/settlement_batch_summary_spec.rb +8 -8
- data/spec/integration/braintree/subscription_spec.rb +144 -149
- data/spec/integration/braintree/test/transaction_amounts_spec.rb +2 -2
- data/spec/integration/braintree/test_transaction_spec.rb +10 -10
- data/spec/integration/braintree/transaction_search_spec.rb +175 -70
- data/spec/integration/braintree/transaction_spec.rb +955 -894
- data/spec/integration/braintree/transaction_us_bank_account_spec.rb +32 -26
- data/spec/integration/braintree/us_bank_account_spec.rb +6 -6
- data/spec/integration/braintree/us_bank_account_verification_search_spec.rb +7 -7
- data/spec/integration/braintree/us_bank_account_verification_spec.rb +8 -8
- data/spec/integration/braintree/visa_checkout_card_spec.rb +5 -5
- data/spec/integration/spec_helper.rb +16 -7
- data/spec/oauth_test_helper.rb +1 -1
- data/spec/script/httpsd.rb +6 -6
- data/spec/spec_helper.rb +8 -14
- data/spec/unit/braintree/address_spec.rb +1 -9
- data/spec/unit/braintree/apple_pay_card_spec.rb +7 -1
- data/spec/unit/braintree/client_token_spec.rb +2 -2
- data/spec/unit/braintree/configuration_spec.rb +42 -42
- data/spec/unit/braintree/credit_card_spec.rb +13 -32
- data/spec/unit/braintree/credit_card_verification_search_spec.rb +1 -1
- data/spec/unit/braintree/credit_card_verification_spec.rb +8 -4
- data/spec/unit/braintree/customer_spec.rb +21 -22
- data/spec/unit/braintree/disbursement_spec.rb +7 -7
- data/spec/unit/braintree/dispute_search_spec.rb +3 -0
- data/spec/unit/braintree/dispute_spec.rb +75 -21
- data/spec/unit/braintree/enriched_customer_data_spec.rb +32 -0
- data/spec/unit/braintree/error_result_spec.rb +5 -5
- data/spec/unit/braintree/errors_spec.rb +8 -8
- data/spec/unit/braintree/exchange_rate_quote_input_spec.rb +42 -0
- data/spec/unit/braintree/exchange_rate_quote_request_spec.rb +82 -0
- data/spec/unit/braintree/exchange_rate_quote_response_spec.rb +52 -0
- data/spec/unit/braintree/exchange_rate_quote_spec.rb +42 -0
- data/spec/unit/braintree/exchange_rate_spec.rb +23 -0
- data/spec/unit/braintree/http_spec.rb +10 -8
- data/spec/unit/braintree/local_payment_completed_spec.rb +14 -0
- data/spec/unit/braintree/local_payment_expired_spec.rb +24 -0
- data/spec/unit/braintree/local_payment_funded_spec.rb +34 -0
- data/spec/unit/braintree/merchant_account_spec.rb +1 -1
- data/spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb +45 -0
- data/spec/unit/braintree/payment_method_nonce_details_payer_info_spec.rb +31 -0
- data/spec/unit/braintree/payment_method_nonce_details_spec.rb +43 -0
- data/spec/unit/braintree/payment_method_nonce_spec.rb +40 -0
- data/spec/unit/braintree/payment_method_spec.rb +1 -1
- data/spec/unit/braintree/paypal_account_spec.rb +2 -2
- data/spec/unit/braintree/resource_collection_spec.rb +30 -1
- data/spec/unit/braintree/risk_data/liability_shift.rb +26 -0
- data/spec/unit/braintree/risk_data_spec.rb +38 -8
- data/spec/unit/braintree/subscription_search_spec.rb +1 -1
- data/spec/unit/braintree/successful_result_spec.rb +1 -1
- data/spec/unit/braintree/three_d_secure_info_spec.rb +32 -14
- data/spec/unit/braintree/transaction/credit_card_details_spec.rb +3 -3
- data/spec/unit/braintree/transaction/customer_details_spec.rb +1 -1
- data/spec/unit/braintree/transaction/deposit_details_spec.rb +2 -2
- data/spec/unit/braintree/transaction/installment_spec.rb +25 -0
- data/spec/unit/braintree/transaction/paypal_details_spec.rb +7 -1
- data/spec/unit/braintree/transaction_search_spec.rb +12 -12
- data/spec/unit/braintree/transaction_spec.rb +36 -54
- data/spec/unit/braintree/util_spec.rb +55 -21
- data/spec/unit/braintree/validation_error_collection_spec.rb +36 -36
- data/spec/unit/braintree/venmo_profile_data_spec.rb +32 -0
- data/spec/unit/braintree/webhook_notification_spec.rb +166 -57
- data/spec/unit/braintree/xml/parser_spec.rb +21 -16
- data/spec/unit/braintree/xml_spec.rb +31 -31
- metadata +62 -30
- data/lib/braintree/amex_express_checkout_card.rb +0 -40
- data/lib/braintree/coinbase_account.rb +0 -34
- data/lib/braintree/europe_bank_account.rb +0 -36
- data/lib/braintree/europe_bank_account_gateway.rb +0 -17
- data/lib/braintree/ideal_payment.rb +0 -61
- data/lib/braintree/ideal_payment_gateway.rb +0 -19
- data/lib/braintree/masterpass_card.rb +0 -83
- data/lib/braintree/settlement_batch.rb +0 -0
- data/lib/braintree/transaction/amex_express_checkout_details.rb +0 -21
- data/lib/braintree/transaction/ideal_payment_details.rb +0 -19
- data/lib/braintree/transaction/masterpass_card_details.rb +0 -49
- data/lib/braintree/transparent_redirect.rb +0 -40
- data/lib/braintree/transparent_redirect_gateway.rb +0 -105
- data/spec/hacks/tcp_socket.rb +0 -18
- data/spec/integration/braintree/coinbase_spec.rb +0 -34
- data/spec/integration/braintree/masterpass_card_spec.rb +0 -97
- data/spec/integration/braintree/transparent_redirect_spec.rb +0 -268
- data/spec/unit/braintree/transparent_redirect_spec.rb +0 -223
@@ -37,27 +37,27 @@ module Braintree
|
|
37
37
|
|
38
38
|
module ApplePay
|
39
39
|
ApplePayCardsAreNotAccepted = "83501"
|
40
|
-
CustomerIdIsRequiredForVaulting = "83502"
|
41
|
-
TokenIsInUse = "93503"
|
42
|
-
PaymentMethodNonceConsumed = "93504"
|
43
|
-
PaymentMethodNonceUnknown = "93505"
|
44
|
-
PaymentMethodNonceLocked = "93506"
|
45
|
-
PaymentMethodNonceCardTypeIsNotAccepted = "83518"
|
46
40
|
CannotUpdateApplePayCardUsingPaymentMethodNonce = "93507"
|
47
|
-
|
48
|
-
|
49
|
-
ExpirationYearIsRequired = "93510"
|
41
|
+
CertificateInvalid = "93517"
|
42
|
+
CertificateMismatch = "93519"
|
50
43
|
CryptogramIsRequired = "93511"
|
44
|
+
CustomerIdIsRequiredForVaulting = "83502"
|
51
45
|
DecryptionFailed = "83512"
|
52
46
|
Disabled = "93513"
|
53
|
-
|
47
|
+
ExpirationMonthIsRequired = "93509"
|
48
|
+
ExpirationYearIsRequired = "93510"
|
49
|
+
InvalidToken = "83520"
|
50
|
+
KeyMismatchStoringCertificate = "93522"
|
54
51
|
MerchantKeysAlreadyConfigured = "93515"
|
55
52
|
MerchantKeysNotConfigured = "93516"
|
56
|
-
|
57
|
-
|
58
|
-
|
53
|
+
MerchantNotConfigured = "93514"
|
54
|
+
NumberIsRequired = "93508"
|
55
|
+
PaymentMethodNonceCardTypeIsNotAccepted = "83518"
|
56
|
+
PaymentMethodNonceConsumed = "93504"
|
57
|
+
PaymentMethodNonceLocked = "93506"
|
58
|
+
PaymentMethodNonceUnknown = "93505"
|
59
59
|
PrivateKeyMismatch = "93521"
|
60
|
-
|
60
|
+
TokenIsInUse = "93503"
|
61
61
|
end
|
62
62
|
|
63
63
|
module CreditCard
|
@@ -68,6 +68,7 @@ module Braintree
|
|
68
68
|
CardholderNameIsTooLong = "81723"
|
69
69
|
CreditCardTypeIsNotAccepted = "81703"
|
70
70
|
CreditCardTypeIsNotAcceptedBySubscriptionMerchantAccount = "81718"
|
71
|
+
CurrencyCodeNotSupportedByMerchantAccount = "91760"
|
71
72
|
CustomerIdIsInvalid = "91705"
|
72
73
|
CustomerIdIsRequired = "91704"
|
73
74
|
CvvIsInvalid = "81707"
|
@@ -100,9 +101,9 @@ module Braintree
|
|
100
101
|
TokenIsRequired = "91722"
|
101
102
|
TokenIsTooLong = "91720"
|
102
103
|
VenmoSDKPaymentMethodCodeCardTypeIsNotAccepted = "91726"
|
103
|
-
VerificationNotSupportedOnThisMerchantAccount = "91730"
|
104
104
|
VerificationAccountTypeIsInvalid = "91757"
|
105
105
|
VerificationAccountTypeNotSupported = "91758"
|
106
|
+
VerificationNotSupportedOnThisMerchantAccount = "91730"
|
106
107
|
|
107
108
|
module Options
|
108
109
|
UpdateExistingTokenIsInvalid = "91723"
|
@@ -112,10 +113,10 @@ module Braintree
|
|
112
113
|
VerificationAmountFormatIsInvalid = "91740"
|
113
114
|
VerificationAmountIsTooLarge = "91752"
|
114
115
|
VerificationAmountNotSupportedByProcessor = "91741"
|
116
|
+
VerificationMerchantAccountCannotBeSubMerchantAccount = "91755"
|
115
117
|
VerificationMerchantAccountIdIsInvalid = "91728"
|
116
118
|
VerificationMerchantAccountIsForbidden = "91743"
|
117
119
|
VerificationMerchantAccountIsSuspended = "91742"
|
118
|
-
VerificationMerchantAccountCannotBeSubMerchantAccount = "91755"
|
119
120
|
end
|
120
121
|
end
|
121
122
|
|
@@ -141,47 +142,46 @@ module Braintree
|
|
141
142
|
end
|
142
143
|
|
143
144
|
module Descriptor
|
144
|
-
NameFormatIsInvalid = "92201"
|
145
|
-
PhoneFormatIsInvalid = "92202"
|
146
145
|
DynamicDescriptorsDisabled = "92203"
|
147
146
|
InternationalNameFormatIsInvalid = "92204"
|
148
147
|
InternationalPhoneFormatIsInvalid = "92205"
|
148
|
+
NameFormatIsInvalid = "92201"
|
149
|
+
PhoneFormatIsInvalid = "92202"
|
149
150
|
UrlFormatIsInvalid = "92206"
|
150
151
|
end
|
151
152
|
|
152
153
|
module Dispute
|
153
|
-
CanOnlyAddEvidenceToOpenDispute = "95701"
|
154
|
-
CanOnlyRemoveEvidenceFromOpenDispute = "95702"
|
155
|
-
CanOnlyAddEvidenceDocumentToDispute = "95703"
|
156
154
|
CanOnlyAcceptOpenDispute = "95704"
|
157
|
-
|
155
|
+
CanOnlyAddEvidenceDocumentToDispute = "95703"
|
156
|
+
CanOnlyAddEvidenceToOpenDispute = "95701"
|
158
157
|
CanOnlyCreateEvidenceWithValidCategory = "95706"
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
EvidenceCategoryTextOnly = "95711"
|
158
|
+
CanOnlyFinalizeOpenDispute = "95705"
|
159
|
+
CanOnlyRemoveEvidenceFromOpenDispute = "95702"
|
160
|
+
DigitalGoodsMissingDownloadDate = "95721"
|
161
|
+
DigitalGoodsMissingEvidence = "95720"
|
164
162
|
EvidenceCategoryDocumentOnly = "95712"
|
165
|
-
EvidenceCategoryNotForReasonCode = "95713"
|
166
163
|
EvidenceCategoryDuplicate = "95714"
|
164
|
+
EvidenceCategoryNotForReasonCode = "95713"
|
165
|
+
EvidenceCategoryTextOnly = "95711"
|
166
|
+
EvidenceContentARNTooLong = "95709"
|
167
|
+
EvidenceContentDateInvalid = "95707"
|
167
168
|
EvidenceContentEmailInvalid = "95715"
|
168
|
-
|
169
|
-
|
170
|
-
DigitalGoodsMissingDownloadDate = "95721"
|
169
|
+
EvidenceContentPhoneTooLong = "95710"
|
170
|
+
EvidenceContentTooLong = "95708"
|
171
171
|
NonDisputedPriorTransactionEvidenceMissingARN = "95722"
|
172
172
|
NonDisputedPriorTransactionEvidenceMissingDate = "95723"
|
173
|
-
RecurringTransactionEvidenceMissingDate = "95724"
|
174
173
|
RecurringTransactionEvidenceMissingARN = "95725"
|
174
|
+
RecurringTransactionEvidenceMissingDate = "95724"
|
175
175
|
ValidEvidenceRequiredToFinalize = "95726"
|
176
176
|
end
|
177
177
|
|
178
178
|
module DocumentUpload
|
179
|
-
|
180
|
-
FileIsTooLarge = "84902"
|
181
|
-
FileTypeIsInvalid = "84903"
|
179
|
+
FileIsEmpty = "84906"
|
182
180
|
FileIsMalformedOrEncrypted = "84904"
|
181
|
+
FileIsTooLarge = "84902"
|
183
182
|
FileIsTooLong = "84905"
|
184
|
-
|
183
|
+
FileTypeIsInvalid = "84903"
|
184
|
+
KindIsInvalid = "84901"
|
185
185
|
end
|
186
186
|
|
187
187
|
module PayPalAccount
|
@@ -203,28 +203,6 @@ module Braintree
|
|
203
203
|
TokenIsInUse = "92906"
|
204
204
|
end
|
205
205
|
|
206
|
-
module EuropeBankAccount
|
207
|
-
IBANIsRequired = "93001"
|
208
|
-
BICIsRequired = "93002"
|
209
|
-
AccountHolderNameIsRequired = "93003"
|
210
|
-
end
|
211
|
-
|
212
|
-
module SEPAMandate
|
213
|
-
AccountHolderNameIsRequired = "83301"
|
214
|
-
BICIsRequired = "83302"
|
215
|
-
IBANIsRequired = "83303"
|
216
|
-
TypeIsRequired = "93304"
|
217
|
-
IBANInvalidCharacter = "83305"
|
218
|
-
BICInvalidCharacter = "83306"
|
219
|
-
BICLengthIsInvalid = "83307"
|
220
|
-
BICUnsupportedCountry = "83308"
|
221
|
-
IBANUnsupportedCountry = "83309"
|
222
|
-
IBANInvalidFormat = "83310"
|
223
|
-
LocaleIsUnsupported = "93311"
|
224
|
-
BillingAddressIsInvalid = "93312"
|
225
|
-
TypeIsInvalid = "93313"
|
226
|
-
end
|
227
|
-
|
228
206
|
module Subscription
|
229
207
|
BillingDayOfMonthCannotBeUpdated = "91918"
|
230
208
|
BillingDayOfMonthIsInvalid = "91914"
|
@@ -293,9 +271,9 @@ module Braintree
|
|
293
271
|
end
|
294
272
|
|
295
273
|
module Transaction
|
274
|
+
AdjustmentAmountMustBeGreaterThanZero = "95605"
|
296
275
|
AmountCannotBeNegative = "81501"
|
297
276
|
AmountDoesNotMatch3DSecureAmount = "91585"
|
298
|
-
AmountDoesNotMatchIdealPaymentAmount = "915144"
|
299
277
|
AmountFormatIsInvalid = "81503" # Keep for backwards compatibility
|
300
278
|
AmountIsInvalid = "81503" # Keep for backwards compatibility
|
301
279
|
AmountIsRequired = "81502"
|
@@ -325,31 +303,32 @@ module Braintree
|
|
325
303
|
CannotUpdateTransactionDetailsNotSubmittedForSettlement = "915129"
|
326
304
|
ChannelIsTooLong = "91550"
|
327
305
|
CreditCardIsRequired = "91508"
|
306
|
+
CurrencyCodeNotSupportedByMerchantAccount = "915214"
|
307
|
+
CustomFieldIsInvalid = "91526"
|
308
|
+
CustomFieldIsTooLong = "81527"
|
328
309
|
CustomerDefaultPaymentMethodCardTypeIsNotAccepted = "81509"
|
329
310
|
CustomerDoesNotHaveCreditCard = "91511"
|
330
311
|
CustomerIdIsInvalid = "91510"
|
331
|
-
CustomFieldIsInvalid = "91526"
|
332
|
-
CustomFieldIsTooLong = "81527"
|
333
312
|
DiscountAmountCannotBeNegative = "915160"
|
334
313
|
DiscountAmountFormatIsInvalid = "915159"
|
335
314
|
DiscountAmountIsTooLarge = "915161"
|
315
|
+
ExchangeRateQuoteIdTooLong = "915229"
|
336
316
|
FailedAuthAdjustmentAllowRetry = "95603"
|
337
317
|
FailedAuthAdjustmentHardDecline = "95602"
|
338
318
|
FinalAuthSubmitForSettlementForDifferentAmount = "95601"
|
339
319
|
HasAlreadyBeenRefunded = "91512"
|
340
|
-
IdealPaymentNotComplete = "815141"
|
341
|
-
IdealPaymentsCannotBeVaulted = "915150"
|
342
320
|
LineItemsExpected = "915158"
|
343
321
|
MerchantAccountDoesNotMatch3DSecureMerchantAccount = "91584"
|
344
|
-
MerchantAccountDoesNotMatchIdealPaymentMerchantAccount = "915143"
|
345
322
|
MerchantAccountDoesNotSupportMOTO = "91558"
|
346
323
|
MerchantAccountDoesNotSupportRefunds = "91547"
|
347
324
|
MerchantAccountIdDoesNotMatchSubscription = "915180"
|
348
325
|
MerchantAccountIdIsInvalid = "91513"
|
349
326
|
MerchantAccountIsSuspended = "91514"
|
350
|
-
|
351
|
-
OrderIdIsRequiredWithIdealPayment = "91502"
|
327
|
+
NoNetAmountToPerformAuthAdjustment = "95606"
|
352
328
|
OrderIdIsTooLong = "91501"
|
329
|
+
PayPalAuthExpired = "91579"
|
330
|
+
PayPalNotEnabled = "91576"
|
331
|
+
PayPalVaultRecordMissingData = "91583"
|
353
332
|
PaymentInstrumentNotSupportedByMerchantAccount = "91577"
|
354
333
|
PaymentInstrumentTypeIsNotAccepted = "915101"
|
355
334
|
PaymentInstrumentWithExternalVaultIsInvalid = "915176"
|
@@ -364,14 +343,14 @@ module Braintree
|
|
364
343
|
PaymentMethodNonceUnknown = "91565"
|
365
344
|
PaymentMethodTokenCardTypeIsNotAccepted = "91517"
|
366
345
|
PaymentMethodTokenIsInvalid = "91518"
|
367
|
-
PayPalAuthExpired = "91579"
|
368
|
-
PayPalNotEnabled = "91576"
|
369
|
-
PayPalVaultRecordMissingData = "91583"
|
370
346
|
ProcessorAuthorizationCodeCannotBeSet = "91519"
|
371
347
|
ProcessorAuthorizationCodeIsInvalid = "81520"
|
372
348
|
ProcessorDoesNotSupportAuths = "915104"
|
349
|
+
ProcessorDoesNotSupportAuthAdjustment = "915222"
|
373
350
|
ProcessorDoesNotSupportCredits = "91546"
|
351
|
+
ProcessorDoesNotSupportIncrementalAuth = "915220"
|
374
352
|
ProcessorDoesNotSupportMotoForCardType = "915195"
|
353
|
+
ProcessorDoesNotSupportPartialAuthReversal = "915221"
|
375
354
|
ProcessorDoesNotSupportPartialSettlement = "915102"
|
376
355
|
ProcessorDoesNotSupportUpdatingDescriptor = "915108"
|
377
356
|
ProcessorDoesNotSupportUpdatingOrderId = "915107"
|
@@ -383,6 +362,7 @@ module Braintree
|
|
383
362
|
RefundAmountIsTooLarge = "91521"
|
384
363
|
RefundAuthHardDeclined = "915200"
|
385
364
|
RefundAuthSoftDeclined = "915201"
|
365
|
+
ScaExemptionInvalid = "915213"
|
386
366
|
ServiceFeeAmountCannotBeNegative = "91554"
|
387
367
|
ServiceFeeAmountFormatIsInvalid = "91555"
|
388
368
|
ServiceFeeAmountIsTooLarge = "91556"
|
@@ -406,6 +386,7 @@ module Braintree
|
|
406
386
|
SubscriptionStatusMustBePastDue = "91531"
|
407
387
|
TaxAmountCannotBeNegative = "81534"
|
408
388
|
TaxAmountFormatIsInvalid = "81535"
|
389
|
+
TaxAmountIsRequiredForAibSwedish = "815224"
|
409
390
|
TaxAmountIsTooLarge = "81536"
|
410
391
|
ThreeDSecureAuthenticationFailed = "81571"
|
411
392
|
ThreeDSecureAuthenticationIdDoesntMatchNonceThreeDSecureAuthentication = "915198"
|
@@ -424,6 +405,8 @@ module Braintree
|
|
424
405
|
ThreeDSecureTransactionPaymentMethodDoesntMatchThreeDSecureAuthenticationPaymentMethod = "915197"
|
425
406
|
ThreeDSecureXidIsRequired = "915115"
|
426
407
|
TooManyLineItems = "915157"
|
408
|
+
TransactionIsNotEligibleForAdjustment = "915219"
|
409
|
+
TransactionMustBeInStateAuthorized = "915218"
|
427
410
|
TransactionSourceIsInvalid = "915133"
|
428
411
|
TypeIsInvalid = "91523"
|
429
412
|
TypeIsRequired = "91524"
|
@@ -451,37 +434,36 @@ module Braintree
|
|
451
434
|
IndustryTypeIsInvalid = "93401"
|
452
435
|
|
453
436
|
module Lodging
|
454
|
-
|
455
|
-
FolioNumberIsInvalid = "93403"
|
437
|
+
AdvancedDepositIndicatorIsInvalid = "93440"
|
456
438
|
CheckInDateIsInvalid = "93404"
|
457
439
|
CheckOutDateIsInvalid = "93405"
|
458
440
|
CheckOutDateMustFollowCheckInDate = "93406"
|
459
|
-
|
460
|
-
|
441
|
+
EmptyData = "93402"
|
442
|
+
FireSafetyIndicatorIsInvalid = "93441"
|
443
|
+
FolioNumberIsInvalid = "93403"
|
444
|
+
NoShowIndicatorIsInvalid = "93439"
|
445
|
+
PropertyPhoneIsInvalid = "93442"
|
461
446
|
RoomRateFormatIsInvalid = "93434"
|
462
447
|
RoomRateIsTooLarge = "93435"
|
463
|
-
|
448
|
+
RoomRateMustBeGreaterThanZero = "93433"
|
464
449
|
RoomTaxFormatIsInvalid = "93437"
|
465
450
|
RoomTaxIsTooLarge = "93438"
|
466
|
-
|
467
|
-
|
468
|
-
FireSafetyIndicatorIsInvalid = "93441"
|
469
|
-
PropertyPhoneIsInvalid = "93442"
|
451
|
+
RoomTaxMustBeGreaterThanZero = "93436"
|
452
|
+
UnknownDataField = "93407"
|
470
453
|
end
|
471
454
|
|
472
455
|
module TravelCruise
|
473
|
-
EmptyData = "93408"
|
474
|
-
UnknownDataField = "93409"
|
475
|
-
TravelPackageIsInvalid = "93410"
|
476
456
|
DepartureDateIsInvalid = "93411"
|
457
|
+
EmptyData = "93408"
|
477
458
|
LodgingCheckInDateIsInvalid = "93412"
|
478
459
|
LodgingCheckOutDateIsInvalid = "93413"
|
460
|
+
TravelPackageIsInvalid = "93410"
|
461
|
+
UnknownDataField = "93409"
|
479
462
|
end
|
480
463
|
|
481
464
|
module TravelFlight
|
482
|
-
EmptyData = "93414"
|
483
|
-
UnknownDataField = "93415"
|
484
465
|
CustomerCodeIsTooLong = "93416"
|
466
|
+
EmptyData = "93414"
|
485
467
|
FareAmountCannotBeNegative = "93417"
|
486
468
|
FareAmountFormatIsInvalid = "93418"
|
487
469
|
FareAmountIsTooLarge = "93419"
|
@@ -490,14 +472,15 @@ module Braintree
|
|
490
472
|
FeeAmountIsTooLarge = "93422"
|
491
473
|
IssuedDateFormatIsInvalid = "93423"
|
492
474
|
IssuingCarrierCodeIsTooLong = "93424"
|
475
|
+
LegsExpected = "93431"
|
493
476
|
PassengerMiddleInitialIsTooLong = "93425"
|
494
477
|
RestrictedTicketIsRequired = "93426"
|
495
478
|
TaxAmountCannotBeNegative = "93427"
|
496
479
|
TaxAmountFormatIsInvalid = "93428"
|
497
480
|
TaxAmountIsTooLarge = "93429"
|
498
481
|
TicketNumberIsTooLong = "93430"
|
499
|
-
LegsExpected = "93431"
|
500
482
|
TooManyLegs = "93432"
|
483
|
+
UnknownDataField = "93415"
|
501
484
|
end
|
502
485
|
|
503
486
|
module Leg
|
@@ -526,30 +509,28 @@ module Braintree
|
|
526
509
|
end
|
527
510
|
|
528
511
|
module AdditionalCharge
|
529
|
-
KindIsInvalid = "96601"
|
530
|
-
KindMustBeUnique = "96602"
|
531
|
-
AmountMustBeGreaterThanZero = "96603"
|
532
512
|
AmountFormatIsInvalid = "96604"
|
533
|
-
AmountIsTooLarge = "96605"
|
534
513
|
AmountIsRequired = "96606"
|
514
|
+
AmountIsTooLarge = "96605"
|
515
|
+
AmountMustBeGreaterThanZero = "96603"
|
516
|
+
KindIsInvalid = "96601"
|
517
|
+
KindMustBeUnique = "96602"
|
535
518
|
end
|
536
519
|
end
|
537
520
|
|
538
521
|
module ExternalVault
|
522
|
+
PreviousNetworkTransactionIdIsInvalid = "915179"
|
539
523
|
StatusIsInvalid = "915175"
|
540
|
-
CardTypeIsInvalid = "915178"
|
541
524
|
StatusWithPreviousNetworkTransactionIdIsInvalid = "915177"
|
542
|
-
PreviousNetworkTransactionIdIsInvalid = "915179"
|
543
525
|
end
|
544
526
|
end
|
545
527
|
|
546
528
|
module TransactionLineItem
|
547
529
|
CommodityCodeIsTooLong = "95801"
|
548
530
|
DescriptionIsTooLong = "95803"
|
531
|
+
DiscountAmountCannotBeNegative = "95806"
|
549
532
|
DiscountAmountFormatIsInvalid = "95804"
|
550
533
|
DiscountAmountIsTooLarge = "95805"
|
551
|
-
DiscountAmountMustBeGreaterThanZero = "95806" # Deprecated as the amount may be zero. Use DiscountAmountCannotBeNegative.
|
552
|
-
DiscountAmountCannotBeNegative = "95806"
|
553
534
|
KindIsInvalid = "95807"
|
554
535
|
KindIsRequired = "95808"
|
555
536
|
NameIsRequired = "95822"
|
@@ -558,6 +539,9 @@ module Braintree
|
|
558
539
|
QuantityFormatIsInvalid = "95810"
|
559
540
|
QuantityIsRequired = "95811"
|
560
541
|
QuantityIsTooLarge = "95812"
|
542
|
+
TaxAmountCannotBeNegative = "95829"
|
543
|
+
TaxAmountFormatIsInvalid = "95827"
|
544
|
+
TaxAmountIsTooLarge = "95828"
|
561
545
|
TotalAmountFormatIsInvalid = "95813"
|
562
546
|
TotalAmountIsRequired = "95814"
|
563
547
|
TotalAmountIsTooLarge = "95815"
|
@@ -567,13 +551,9 @@ module Braintree
|
|
567
551
|
UnitAmountIsTooLarge = "95819"
|
568
552
|
UnitAmountMustBeGreaterThanZero = "95820"
|
569
553
|
UnitOfMeasureIsTooLong = "95821"
|
554
|
+
UnitTaxAmountCannotBeNegative = "95826"
|
570
555
|
UnitTaxAmountFormatIsInvalid = "95824"
|
571
556
|
UnitTaxAmountIsTooLarge = "95825"
|
572
|
-
UnitTaxAmountMustBeGreaterThanZero = "95826" # Deprecated as the amount may be zero. Use UnitTaxAmountCannotBeNegative.
|
573
|
-
UnitTaxAmountCannotBeNegative = "95826"
|
574
|
-
TaxAmountFormatIsInvalid = "95827"
|
575
|
-
TaxAmountIsTooLarge = "95828"
|
576
|
-
TaxAmountCannotBeNegative = "95829"
|
577
557
|
end
|
578
558
|
|
579
559
|
module Merchant
|
@@ -587,96 +567,96 @@ module Braintree
|
|
587
567
|
CountryNameIsInvalid = "93611"
|
588
568
|
CountryNameIsNotAccepted = "93610"
|
589
569
|
CurrenciesAreInvalid = "93614"
|
570
|
+
CurrencyIsInvalid = "93618"
|
571
|
+
CurrencyIsRequired = "93617"
|
590
572
|
EmailFormatIsInvalid = "93602"
|
591
573
|
EmailIsRequired = "83601"
|
592
574
|
InconsistentCountry = "93612"
|
593
|
-
PaymentMethodsAreInvalid = "93613"
|
594
|
-
PaymentMethodsAreNotAllowed = "93615"
|
595
575
|
MerchantAccountExistsForCurrency = "93616"
|
596
|
-
CurrencyIsRequired = "93617"
|
597
|
-
CurrencyIsInvalid = "93618"
|
598
|
-
NoMerchantAccounts = "93619"
|
599
576
|
MerchantAccountExistsForId = "93620"
|
600
577
|
MerchantAccountNotAuthOnboarded = "93621"
|
578
|
+
NoMerchantAccounts = "93619"
|
579
|
+
PaymentMethodsAreInvalid = "93613"
|
580
|
+
PaymentMethodsAreNotAllowed = "93615"
|
601
581
|
end
|
602
582
|
|
603
583
|
module MerchantAccount
|
604
|
-
|
584
|
+
CannotBeUpdated = "82674"
|
585
|
+
Declined = "82626"
|
586
|
+
DeclinedFailedKYC = "82623"
|
587
|
+
DeclinedMasterCardMatch = "82622"
|
588
|
+
DeclinedOFAC = "82621"
|
589
|
+
DeclinedSsnInvalid = "82624"
|
590
|
+
DeclinedSsnMatchesDeceased = "82625"
|
591
|
+
IdCannotBeUpdated = "82675"
|
605
592
|
IdFormatIsInvalid = "82603"
|
606
593
|
IdIsInUse = "82604"
|
607
594
|
IdIsNotAllowed = "82605"
|
608
|
-
|
595
|
+
IdIsTooLong = "82602"
|
596
|
+
MasterMerchantAccountIdCannotBeUpdated = "82676"
|
609
597
|
MasterMerchantAccountIdIsInvalid = "82607"
|
598
|
+
MasterMerchantAccountIdIsRequired = "82606"
|
610
599
|
MasterMerchantAccountMustBeActive = "82608"
|
611
600
|
TosAcceptedIsRequired = "82610"
|
612
|
-
IdCannotBeUpdated = "82675"
|
613
|
-
MasterMerchantAccountIdCannotBeUpdated = "82676"
|
614
|
-
CannotBeUpdated = "82674"
|
615
|
-
DeclinedOFAC = "82621"
|
616
|
-
DeclinedMasterCardMatch = "82622"
|
617
|
-
DeclinedFailedKYC = "82623"
|
618
|
-
DeclinedSsnInvalid = "82624"
|
619
|
-
DeclinedSsnMatchesDeceased = "82625"
|
620
|
-
Declined = "82626"
|
621
601
|
|
622
602
|
module ApplicantDetails
|
623
|
-
|
624
|
-
LastNameIsRequired = "82611"
|
625
|
-
DateOfBirthIsRequired = "82612"
|
626
|
-
RoutingNumberIsRequired = "82613"
|
603
|
+
AccountNumberIsInvalid = "82670"
|
627
604
|
AccountNumberIsRequired = "82614"
|
628
|
-
SsnIsInvalid = "82615"
|
629
|
-
EmailAddressIsInvalid = "82616"
|
630
|
-
FirstNameIsInvalid = "82627"
|
631
|
-
LastNameIsInvalid = "82628"
|
632
605
|
CompanyNameIsInvalid = "82631"
|
633
|
-
TaxIdIsInvalid = "82632"
|
634
606
|
CompanyNameIsRequiredWithTaxId = "82633"
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
DeclinedMasterCardMatch = "82622" # Keep for backwards compatibility
|
607
|
+
DateOfBirthIsInvalid = "82663"
|
608
|
+
DateOfBirthIsRequired = "82612"
|
609
|
+
Declined = "82626" # Keep for backwards compatibility
|
639
610
|
DeclinedFailedKYC = "82623" # Keep for backwards compatibility
|
611
|
+
DeclinedMasterCardMatch = "82622" # Keep for backwards compatibility
|
612
|
+
DeclinedOFAC = "82621" # Keep for backwards compatibility
|
640
613
|
DeclinedSsnInvalid = "82624" # Keep for backwards compatibility
|
641
614
|
DeclinedSsnMatchesDeceased = "82625" # Keep for backwards compatibility
|
642
|
-
|
643
|
-
PhoneIsInvalid = "82636"
|
644
|
-
DateOfBirthIsInvalid = "82663"
|
645
|
-
AccountNumberIsInvalid = "82670"
|
615
|
+
EmailAddressIsInvalid = "82616"
|
646
616
|
EmailAddressIsRequired = "82665"
|
617
|
+
FirstNameIsInvalid = "82627"
|
618
|
+
FirstNameIsRequired = "82609"
|
619
|
+
LastNameIsInvalid = "82628"
|
620
|
+
LastNameIsRequired = "82611"
|
621
|
+
PhoneIsInvalid = "82636"
|
622
|
+
RoutingNumberIsInvalid = "82635"
|
623
|
+
RoutingNumberIsRequired = "82613"
|
624
|
+
SsnIsInvalid = "82615"
|
625
|
+
TaxIdIsInvalid = "82632"
|
626
|
+
TaxIdIsRequiredWithCompanyName = "82634"
|
647
627
|
TaxIdMustBeBlank = "82673"
|
648
628
|
|
649
629
|
module Address
|
650
|
-
StreetAddressIsRequired = "82617"
|
651
630
|
LocalityIsRequired = "82618"
|
631
|
+
PostalCodeIsInvalid = "82630"
|
652
632
|
PostalCodeIsRequired = "82619"
|
633
|
+
RegionIsInvalid = "82664"
|
653
634
|
RegionIsRequired = "82620"
|
654
635
|
StreetAddressIsInvalid = "82629"
|
655
|
-
|
656
|
-
RegionIsInvalid = "82664"
|
636
|
+
StreetAddressIsRequired = "82617"
|
657
637
|
end
|
658
638
|
end
|
659
639
|
|
660
640
|
module Individual
|
661
|
-
|
662
|
-
LastNameIsRequired = "82638"
|
641
|
+
DateOfBirthIsInvalid = "82666"
|
663
642
|
DateOfBirthIsRequired = "82639"
|
664
|
-
SsnIsInvalid = "82642"
|
665
643
|
EmailIsInvalid = "82643"
|
644
|
+
EmailIsRequired = "82667"
|
666
645
|
FirstNameIsInvalid = "82644"
|
646
|
+
FirstNameIsRequired = "82637"
|
667
647
|
LastNameIsInvalid = "82645"
|
648
|
+
LastNameIsRequired = "82638"
|
668
649
|
PhoneIsInvalid = "82656"
|
669
|
-
|
670
|
-
EmailIsRequired = "82667"
|
650
|
+
SsnIsInvalid = "82642"
|
671
651
|
|
672
652
|
module Address
|
673
|
-
StreetAddressIsRequired = "82657"
|
674
653
|
LocalityIsRequired = "82658"
|
654
|
+
PostalCodeIsInvalid = "82662"
|
675
655
|
PostalCodeIsRequired = "82659"
|
656
|
+
RegionIsInvalid = "82668"
|
676
657
|
RegionIsRequired = "82660"
|
677
658
|
StreetAddressIsInvalid = "82661"
|
678
|
-
|
679
|
-
RegionIsInvalid = "82668"
|
659
|
+
StreetAddressIsRequired = "82657"
|
680
660
|
end
|
681
661
|
end
|
682
662
|
|
@@ -688,9 +668,9 @@ module Braintree
|
|
688
668
|
TaxIdIsRequiredWithLegalName = "82648"
|
689
669
|
TaxIdMustBeBlank = "82672"
|
690
670
|
module Address
|
691
|
-
StreetAddressIsInvalid = "82685"
|
692
671
|
PostalCodeIsInvalid = "82686"
|
693
672
|
RegionIsInvalid = "82684"
|
673
|
+
StreetAddressIsInvalid = "82685"
|
694
674
|
end
|
695
675
|
end
|
696
676
|
|
@@ -709,32 +689,32 @@ module Braintree
|
|
709
689
|
end
|
710
690
|
|
711
691
|
module SettlementBatchSummary
|
712
|
-
SettlementDateIsRequired = "82301"
|
713
|
-
SettlementDateIsInvalid = "82302"
|
714
692
|
CustomFieldIsInvalid = "82303"
|
693
|
+
SettlementDateIsInvalid = "82302"
|
694
|
+
SettlementDateIsRequired = "82301"
|
715
695
|
end
|
716
696
|
|
717
697
|
module ClientToken
|
718
698
|
CustomerDoesNotExist = "92804"
|
719
699
|
FailOnDuplicatePaymentMethodRequiresCustomerId = "92803"
|
720
700
|
MakeDefaultRequiresCustomerId = "92801"
|
701
|
+
MerchantAccountDoesNotExist = "92807"
|
721
702
|
ProxyMerchantDoesNotExist = "92805"
|
722
|
-
VerifyCardRequiresCustomerId = "92802"
|
723
703
|
UnsupportedVersion = "92806"
|
724
|
-
|
704
|
+
VerifyCardRequiresCustomerId = "92802"
|
725
705
|
end
|
726
706
|
|
727
707
|
module PaymentMethod
|
728
|
-
|
708
|
+
CannotForwardPaymentMethodType = "93106"
|
729
709
|
CustomerIdIsInvalid = "93105"
|
730
710
|
CustomerIdIsRequired = "93104"
|
731
711
|
NonceIsInvalid = "93102"
|
732
712
|
NonceIsRequired = "93103"
|
733
|
-
PaymentMethodParamsAreRequired = "93101"
|
734
|
-
PaymentMethodNonceUnknown = "93108"
|
735
|
-
PaymentMethodNonceLocked = "93109"
|
736
|
-
CannotForwardPaymentMethodType = "93107"
|
737
713
|
PaymentMethodNoLongerSupported = "93117"
|
714
|
+
PaymentMethodNonceConsumed = "93107"
|
715
|
+
PaymentMethodNonceLocked = "93109"
|
716
|
+
PaymentMethodNonceUnknown = "93108"
|
717
|
+
PaymentMethodParamsAreRequired = "93101"
|
738
718
|
|
739
719
|
module Options
|
740
720
|
UsBankAccountVerificationMethodIsInvalid = "93121"
|
@@ -761,52 +741,51 @@ module Braintree
|
|
761
741
|
|
762
742
|
module Verification
|
763
743
|
module Options
|
744
|
+
AccountTypeIsInvalid = "942184"
|
745
|
+
AccountTypeNotSupported = "942185"
|
764
746
|
AmountCannotBeNegative = "94201"
|
765
747
|
AmountFormatIsInvalid = "94202"
|
766
748
|
AmountIsTooLarge = "94207"
|
767
749
|
AmountNotSupportedByProcessor = "94203"
|
750
|
+
MerchantAccountCannotBeSubMerchantAccount = "94208"
|
768
751
|
MerchantAccountIdIsInvalid = "94204"
|
769
|
-
MerchantAccountIsSuspended = "94205"
|
770
752
|
MerchantAccountIsForbidden = "94206"
|
771
|
-
|
772
|
-
AccountTypeIsInvalid = "942184"
|
773
|
-
AccountTypeNotSupported = "942185"
|
753
|
+
MerchantAccountIsSuspended = "94205"
|
774
754
|
end
|
775
755
|
|
776
|
-
|
756
|
+
AmountDoesNotMatch3DSecureAmount = "94285"
|
757
|
+
MerchantAccountDoesNotSupport3DSecure = "942169"
|
758
|
+
MerchantAcountDoesNotMatch3DSecureMerchantAccount = "94284"
|
759
|
+
ThreeDSecureAuthenticationFailed = "94271"
|
777
760
|
ThreeDSecureAuthenticationIdDoesntMatchNonceThreeDSecureAuthentication = "942198"
|
778
|
-
|
761
|
+
ThreeDSecureAuthenticationIdIsInvalid = "942196"
|
779
762
|
ThreeDSecureAuthenticationIdWithThreeDSecurePassThruIsInvalid = "942199"
|
780
|
-
ThreeDSecureAuthenticationFailed = "94271"
|
781
763
|
ThreeDSecureTokenIsInvalid = "94268"
|
764
|
+
ThreeDSecureTransactionPaymentMethodDoesntMatchThreeDSecureAuthenticationPaymentMethod = "942197"
|
782
765
|
ThreeDSecureVerificationDataDoesntMatchVerify = "94270"
|
783
|
-
MerchantAccountDoesNotSupport3DSecure = "942169"
|
784
|
-
MerchantAcountDoesNotMatch3DSecureMerchantAccount = "94284"
|
785
|
-
AmountDoesNotMatch3DSecureAmount = "94285"
|
786
766
|
|
787
767
|
module ThreeDSecurePassThru
|
788
|
-
EciFlagIsRequired = "942113"
|
789
|
-
EciFlagIsInvalid = "942114"
|
790
|
-
CavvIsRequired = "942116"
|
791
|
-
ThreeDSecureVersionIsRequired = "942117"
|
792
|
-
ThreeDSecureVersionIsInvalid = "942119"
|
793
768
|
AuthenticationResponseIsInvalid = "942120"
|
794
|
-
DirectoryResponseIsInvalid = "942121"
|
795
769
|
CavvAlgorithmIsInvalid = "942122"
|
770
|
+
CavvIsRequired = "942116"
|
771
|
+
DirectoryResponseIsInvalid = "942121"
|
772
|
+
EciFlagIsInvalid = "942114"
|
773
|
+
EciFlagIsRequired = "942113"
|
774
|
+
ThreeDSecureVersionIsInvalid = "942119"
|
775
|
+
ThreeDSecureVersionIsRequired = "942117"
|
796
776
|
end
|
797
777
|
end
|
798
778
|
|
799
779
|
module UsBankAccountVerification
|
800
|
-
NotConfirmable = "96101"
|
801
|
-
MustBeMicroTransfersVerification = "96102"
|
802
780
|
AmountsDoNotMatch = "96103"
|
781
|
+
InvalidDepositAmounts = "96106"
|
782
|
+
MustBeMicroTransfersVerification = "96102"
|
783
|
+
NotConfirmable = "96101"
|
803
784
|
TooManyConfirmationAttempts = "96104"
|
804
785
|
UnableToConfirmDepositAmounts = "96105"
|
805
|
-
InvalidDepositAmounts = "96106"
|
806
786
|
end
|
807
787
|
|
808
788
|
module RiskData
|
809
|
-
CustomerBrowserIsTooLong = "94701"
|
810
789
|
CustomerDeviceIdIsTooLong = "94702"
|
811
790
|
CustomerLocationZipInvalidCharacters = "94703"
|
812
791
|
CustomerLocationZipIsInvalid = "94704"
|
data/lib/braintree/exceptions.rb
CHANGED
@@ -8,9 +8,7 @@ module Braintree # :nodoc:
|
|
8
8
|
|
9
9
|
class ConfigurationError < BraintreeError; end
|
10
10
|
|
11
|
-
class
|
12
|
-
|
13
|
-
class ForgedQueryString < BraintreeError; end
|
11
|
+
class GatewayTimeoutError < BraintreeError; end
|
14
12
|
|
15
13
|
class InvalidSignature < BraintreeError; end
|
16
14
|
|
@@ -18,8 +16,12 @@ module Braintree # :nodoc:
|
|
18
16
|
|
19
17
|
class NotFoundError < BraintreeError; end
|
20
18
|
|
19
|
+
class RequestTimeoutError < BraintreeError; end
|
20
|
+
|
21
21
|
class ServerError < BraintreeError; end
|
22
22
|
|
23
|
+
class ServiceUnavailableError < BraintreeError; end
|
24
|
+
|
23
25
|
class SSLCertificateError < BraintreeError; end
|
24
26
|
|
25
27
|
class TooManyRequestsError < BraintreeError; end
|