module Braintree::Transaction::Sandbox::Amount

Defined in:

models/sandbox/transaction/amount.cr

Class Method Summary

Class Method Detail

def self.additional_authorization_required #

Generate an amount for a Soft declined transaction Additional authorization required

This transaction requires additional customer credentials for authorization. The customer should insert their chip. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2101


[View source]
def self.address_verification_failed #

Generate an amount for a Address Verification and Card Security Code Failed declined transaction Address Verification Failed

0 more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2059


[View source]
def self.already_captured #

Already Captured

The transaction has already been fully captured. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4003


[View source]
def self.already_refunded #

Already Refunded

The transaction has already been fully refunded. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4004


[View source]
def self.already_reversed #

Generate an amount for a contact us for more information. declined transaction Already Reversed

The indicated authorization has already been reversed. If you believe this to be false more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2037


[View source]
def self.authorization_could_not_be_found #

Generate an amount for a Hard declined transaction Authorization could not be found

An error occurred when trying to process the authorization. This response could indicate an issue with the customer’s card or that the processor doesn't allow this action – contact us for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2036


[View source]
def self.authorization_expired #

Generate an amount for a Hard declined transaction Authorization Expired

The PayPal authorization is no longer valid. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2067


[View source]
def self.authorized #

Generate an amount for an authorized transaction

This transaction will also be settled more info: https://developers.braintreepayments.com/reference/general/testing/ruby#amount-001-199999


[View source]
def self.call_issuer_pick_up_card #

Generate an amount for a you don’t have the physical card and can't complete this request – obtain a different payment method from the customer. declined transaction Call Issuer. Pick Up Card

The customer’s card has been reported as lost or stolen by the cardholder and the card-issuing bank has requested that merchants keep the card and call the number on the back to report it. As an online merchant more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2047


[View source]
def self.capture_amount_exceeded_allowable_limit #

Capture Amount Exceeded Allowable Limit

The specified capture amount exceeded the amount allowed by the processor. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4006


[View source]
def self.card_account_length_error #

Generate an amount for a the customer will need to contact their bank. declined transaction Card Account Length Error

The submitted card number does not include the proper number of digits. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2008


[View source]
def self.card_issuer_declined_cvv #

Generate an amount for a the customer will need to contact their bank. declined transaction Card Issuer Declined CVV

The customer entered in an invalid security code or made a typo in their card information. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2010


[View source]
def self.card_reported_as_lost_or_stolen #

Generate an amount for a Hard declined transaction Card reported as lost or stolen

The card used was reported lost or stolen. The customer will need to contact their bank for more information or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2053


[View source]
def self.card_type_not_enabled #

Generate an amount for a contact us for assistance. declined transaction Card Type Not Enabled

Your account can't process the attempted card type. If you believe your merchant account should be set up to accept this type of card more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2024


[View source]
def self.cardholder_authentication_required #

Generate an amount for a then attempt the authorization again. declined transaction Cardholder Authentication Required

The customer's bank declined the transaction because a 3D Secure authentication was not performed during checkout. Have the customer authenticate using 3D Secure more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2099


[View source]
def self.cardholder_stopped_all_billing #

Generate an amount for a Hard declined transaction Cardholder Stopped All Billing

The customer requested the cancellation of a recurring transaction or subscription – reach out to them for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2018


[View source]
def self.cardholder_stopped_billing #

Generate an amount for a Hard declined transaction Cardholder Stopped Billing

The customer requested a cancellation of a single transaction – reach out to them for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2017


[View source]
def self.cardholders_activity_limit_exceeded #

Generate an amount for a Soft declined transaction Cardholder's Activity Limit Exceeded

The attempted transaction exceeds the activity limit of the account. The customer will need to contact their bank to change the account limits or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2003


[View source]
def self.credit_card_number_does_not_match_method_of_payment #

Generate an amount for a ask for a different card or payment method. declined transaction Credit Card Number does not match method of payment

There may be an issue with the customer’s credit card or a temporary issue at the card-issuing bank. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2051


[View source]
def self.currency_not_enabled_for_your_paypal_seller_account #

Generate an amount for a PayPal payee email permission denied for this request declined transaction Currency not enabled for your PayPal seller account

9 more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2088


[View source]
def self.currency_of_this_transaction_must_match_currency_of_your_paypal_account #

Generate an amount for a Hard declined transaction Currency of this transaction must match currency of your PayPal account

Your PayPal account can only process transactions in the currency of your home country. Contact PayPal's Support team for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2091


[View source]
def self.declined #

Generate an amount for an authorized and declined transaction

Settlement Declined on certain transaction types with a processor response equal to the amount; Settled on all others more info: https://developers.braintreepayments.com/reference/general/testing/ruby#amount-400100-400199


[View source]
def self.declined_call_for_approval #

Generate an amount for a Hard declined transaction Declined – Call For Approval

The card used for this transaction requires customer approval – they will need to contact their bank. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2041


[View source]
def self.declined_call_issuer #

Generate an amount for a they will need to contact their bank for more information. declined transaction Declined – Call Issuer

The card-issuing bank has declined this transaction. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2044


[View source]
def self.declined_updated_cardholder_available #

Generate an amount for a Hard declined transaction Declined – Updated Cardholder Available

The submitted card has expired or been reported lost and a new card has been issued. Reach out to your customer to obtain updated card information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2022


[View source]
def self.do_not_honor #

Generate an amount for a Soft declined transaction Do Not Honor

The customer's bank is unwilling to accept the transaction. The customer will need to contact their bank for more details regarding this generic decline. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2000


[View source]
def self.duplicate_transaction #

Generate an amount for a Soft declined transaction Duplicate Transaction

The submitted transaction appears to be a duplicate of a previously submitted transaction and was declined to prevent charging the same card twice for the same service. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2016


[View source]
def self.encryption_error #

Generate an amount for a Hard declined transaction Encryption Error

The cardholder’s bank does not support $0.00 card verifications. Enable the Retry All Failed $0 option to resolve this error. Contact us with questions. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2031


[View source]
def self.error_do_not_retry #

Generate an amount for a The card-issuing bank will not allow this transaction. The customer will need to contact their bank for more information. declined transaction Error – Do Not Retry

Call Issuer more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2043


[View source]
def self.expired_card #

Generate an amount for a Hard declined transaction Expired Card

Card is expired. The customer will need to use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2004


[View source]
def self.funding_instrument_in_the_paypal_account_was_declined_by_the_processor_or_bank #

Generate an amount for a The customer’s payment method associated with their PayPal account was declined. Reach out to the customer for more information or a different payment method. declined transaction Funding Instrument In The PayPal Account Was Declined By The Processor Or Bank

Or It Can't Be Used For This Payment more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2074


[View source]
def self.gateway_rejected #

Generate an amount for a Gateway Rejected transaction

Gateway Rejected with a reason of Application Incomplete more info: https://developers.braintreepayments.com/reference/general/testing/ruby#amount-500100


[View source]
def self.inconsistent_data #

Generate an amount for a Hard declined transaction Inconsistent Data

An error occurred when communicating with the processor. The customer will need to contact their bank for more details. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2033


[View source]
def self.incorrect_pin #

Generate an amount for a Soft declined transaction Incorrect PIN

The entered PIN was incorrect. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2102


[View source]
def self.insufficient_funds #

Generate an amount for a Soft declined transaction Insufficient Funds

The account did not have sufficient funds to cover the transaction amount at the time of the transaction – subsequent attempts at a later date may be successful. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2001


[View source]
def self.invalid_amount #

Generate an amount for a is unreadable declined transaction Invalid Amount

The authorized amount is set to zero more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2048


[View source]
def self.invalid_authorization_code #

Generate an amount for a they will need to contact their bank. declined transaction Invalid Authorization Code

The authorization code was not found or not provided. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2039


[View source]
def self.invalid_client_id #

Generate an amount for a contact us for more information. declined transaction Invalid Client ID

There may be an issue with the configuration of your account. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2042


[View source]
def self.invalid_credit_card_number #

Generate an amount for a they will need to contact their bank. declined transaction Invalid Credit Card Number

The customer entered an invalid payment method or made a typo in their credit card information. Have the customer correct their payment information and attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2005


[View source]
def self.invalid_credit_plan #

Generate an amount for a Hard declined transaction Invalid Credit Plan

There may be an issue with the customer’s card or a temporary issue at the card-issuing bank. The customer will need to contact their bank for more information or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2050


[View source]
def self.invalid_expiration_date #

Generate an amount for a they will need to contact their bank. declined transaction Invalid Expiration Date

The customer entered an invalid payment method or made a typo in their card expiration date. Have the customer correct their payment information and attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2006


[View source]
def self.invalid_merchant_id #

Generate an amount for a typically because the card in question does not support this type of transaction. If this response persists across transactions for multiple customers declined transaction Invalid Merchant ID

The customer’s bank declined the transaction more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2026


[View source]
def self.invalid_merchant_number #

Generate an amount for a Hard declined transaction Invalid Merchant Number

There is a setup issue with your account. Contact us for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2045


[View source]
def self.invalid_sku_number #

Generate an amount for a Hard declined transaction Invalid SKU Number

A non-numeric value was sent with the attempted transaction. Fix errors and resubmit with the transaction with the proper SKU Number. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2049


[View source]
def self.invalid_store #

Generate an amount for a contact us for more information. declined transaction Invalid Store

There may be an issue with the configuration of your account. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2040


[View source]
def self.invalid_tax_amount #

Generate an amount for a ask for a different card or payment method. declined transaction Invalid Tax Amount

There may be an issue with the customer’s card or a temporary issue at the card-issuing bank. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2062


[View source]
def self.invalid_transaction #

Generate an amount for a typically because the card in question does not support this type of transaction – for example declined transaction Invalid Transaction

The customer’s bank declined the transaction more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2019


[View source]
def self.invalid_transaction_data #

Generate an amount for a ask for a different card or payment method. declined transaction Invalid Transaction Data

There may be an issue with the customer’s card or a temporary issue at the card-issuing bank. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2061


[View source]
def self.invalid_transaction_division_number #

Generate an amount for a Hard declined transaction Invalid Transaction Division Number

Contact us for more information regarding this error message. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2055


[View source]
def self.issuer_or_cardholder_has_put_a_restriction_on_the_card #

Generate an amount for a Soft declined transaction Issuer or Cardholder has put a restriction on the card

The customer will need to contact their issuing bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2057


[View source]
def self.limit_exceeded #

Generate an amount for a Soft declined transaction Limit Exceeded

The attempted transaction exceeds the withdrawal limit of the account. The customer will need to contact their bank to change the account limits or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2002


[View source]
def self.merchant_not_mastercard_securecode_enabled #

Generate an amount for a Hard declined transaction Merchant not Mastercard SecureCode enabled

The attempted card can't be processed without enabling 3D Secure for your account. Contact us for more information regarding this feature or contact the customer for a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2058


[View source]
def self.no_account #

Generate an amount for a Hard declined transaction No Account

The submitted card number is not on file with the card-issuing bank. The customer will need to contact their bank. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2007


[View source]
def self.no_action_taken #

Generate an amount for a Soft declined transaction No Action Taken

An error occurred and the intended transaction was not completed. Attempt the transaction again. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2034


[View source]
def self.no_data_found_try_another_verification_method #

Generate an amount for a Soft declined transaction No Data Found - Try Another Verification Method

The processor is unable to provide a definitive answer about the customer's bank account. Please try a different US bank account verification method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2092


[View source]
def self.no_such_issuer #

Generate an amount for a Hard declined transaction No Such Issuer

This decline code could indicate that the submitted card number does not correlate to an existing card-issuing bank or that there is a connectivity error with the issuer. The customer will need to contact their bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2009


[View source]
def self.offline_issuer_declined #

Generate an amount for a Soft declined transaction Offline Issuer Declined

The transaction was declined offline by the issuer. The customer will need to contact their bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2104


[View source]
def self.partial_approval_for_amount_in_group_iii_version #

Generate an amount for a the customer will need to use a different payment method. declined transaction Partial Approval For Amount In Group III Version

The customer's bank approved the transaction for less than the requested amount. Have the customer attempt the transaction again – if the decline persists more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2035


[View source]
def self.payer_account_is_locked_or_closed #

Generate an amount for a Hard declined transaction Payer Account Is Locked Or Closed

The customer’s PayPal account can't be used for transactions at this time. The customer will need to contact PayPal for more information or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2075


[View source]
def self.payer_cannot_pay_for_this_transaction_with_paypal #

Generate an amount for a Hard declined transaction Payer Cannot Pay For This Transaction With PayPal

The customer should contact PayPal for more information or use a different payment method. You may also receive this response if you create transactions using the email address registered with your PayPal Business Account. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2076


[View source]
def self.paypal_account_not_configured_to_refund_more_than_settled_amount #

Generate an amount for a Hard declined transaction PayPal account not configured to refund more than settled amount

Your PayPal account is not set up to refund amounts higher than the original transaction amount. Contact PayPal's Support team for information on how to enable this. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2090


[View source]
def self.paypal_authorization_amount_limit_exceeded #

Generate an amount for a Hard declined transaction PayPal authorization amount limit exceeded

PayPal authorization amount is greater than the allowed limit on the order. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2097


[View source]
def self.paypal_authorization_count_limit_exceeded #

Generate an amount for a Hard declined transaction PayPal authorization count limit exceeded

The number of PayPal authorizations is greater than the allowed number on the order. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2098


[View source]
def self.paypal_blocking_duplicate_order_ids #

Generate an amount for a Hard declined transaction PayPal Blocking Duplicate Order IDs

The submitted PayPal transaction appears to be a duplicate of a previously submitted transaction. This decline code indicates an attempt to prevent charging the same PayPal account twice for the same service. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2069


[View source]
def self.paypal_business_account_locked_or_closed #

Generate an amount for a you can attempt to process the transaction again. declined transaction PayPal Business Account Locked or Closed

You'll need to contact PayPal’s Support team to resolve an issue with your account. Once resolved more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2068


[View source]
def self.paypal_business_account_preference_resulted_in_the_transaction_failing #

Generate an amount for a Invalid Currency Code declined transaction PayPal Business Account preference resulted in the transaction failing

4 more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2063


[View source]
def self.paypal_business_account_restricted #

Generate an amount for a you can attempt the transaction again. declined transaction PayPal Business Account Restricted

Contact PayPal’s Support team to resolve this issue with your account. Then more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2066


[View source]
def self.paypal_buyer_account_cant_be_the_same_as_the_seller_account #

Generate an amount for a Hard declined transaction PayPal buyer account can't be the same as the seller account

PayPal buyer account can't be the same as the seller account. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2096


[View source]
def self.paypal_buyer_revoked_pre_approved_payment_authorization #

Generate an amount for a Hard declined transaction PayPal Buyer Revoked Pre-Approved Payment Authorization

The customer revoked authorization for this payment method. Reach out to the customer for more information or a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2070


[View source]
def self.paypal_channel_initiated_billing_not_enabled_for_your_account #

Generate an amount for a you can attempt to process the transaction again. declined transaction PayPal channel initiated billing not enabled for your account

Your PayPal permissions are not set up to allow channel initiated billing transactions. Contact PayPal's Support team for information on how to enable this. Once resolved more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2100


[View source]
def self.paypal_domestic_transaction_required #

Generate an amount for a Hard declined transaction PayPal Domestic Transaction Required

This transaction requires the customer to be a resident of the same country as the merchant. Reach out to the customer for a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2082


[View source]
def self.paypal_merchant_account_configuration_error #

Generate an amount for a you can attempt to process the transaction again. declined transaction PayPal Merchant Account Configuration Error

You'll need to contact us to resolve an issue with your account. Once resolved more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2079


[View source]
def self.paypal_payee_account_invalid_or_does_not_have_a_confirmed_email #

Generate an amount for a Hard declined transaction PayPal Payee Account Invalid Or Does Not Have a Confirmed Email

Customer has not finalized setup of their PayPal account. Reach out to the customer for more information or a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2071


[View source]
def self.paypal_payee_blocked_transaction #

Generate an amount for a Hard declined transaction PayPal Payee Blocked Transaction

Fraud settings on your PayPal business account are blocking payments from this customer. These can be adjusted in the Block Payments section of your PayPal business account. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2085


[View source]
def self.paypal_payee_email_incorrectly_formatted #

Generate an amount for a Hard declined transaction PayPal Payee Email Incorrectly Formatted

Customer made a typo or is attempting to use an invalid PayPal account. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2072


[View source]
def self.paypal_payment_has_already_been_completed #

Generate an amount for a Hard declined transaction PayPal payment has already been completed

Your integration is likely making PayPal calls out of sequence. Check the error response for more details. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2094


[View source]
def self.paypal_payment_method_is_invalid #

Generate an amount for a Hard declined transaction PayPal payment method is invalid

The PayPal payment method has either expired or been canceled. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2093


[View source]
def self.paypal_pending_payments_are_not_supported #

Generate an amount for a have the customer reach out to PayPal for more information. declined transaction PayPal pending payments are not supported

Braintree received an unsupported Pending Verification response from PayPal. Contact Braintree’s Support team to resolve a potential issue with your account settings. If there is no issue with your account more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2081


[View source]
def self.paypal_pending_payments_not_supported #

PayPal Pending Payments Not Supported

PayPal returned a pending sale or refund response which is disallowed by Braintree. This failure is likely due to a misconfiguration in your PayPal account. Further details may be found in the transaction details. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4018


[View source]
def self.paypal_phone_number_required #

Generate an amount for a Hard declined transaction PayPal Phone Number Required

This transaction requires the payer to provide a valid phone number. The customer should contact PayPal for more information or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2083


[View source]
def self.paypal_reference_transactions_not_enabled_for_your_account #

Generate an amount for a you can attempt to process the transaction again. declined transaction PayPal reference transactions not enabled for your account

PayPal API permissions are not set up to allow reference transactions. You'll need to contact PayPal’s Support team to resolve an issue with your account. Once resolved more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2087


[View source]
def self.paypal_refund_attempt_limit_reached #

PayPal Refund Attempt Limit Reached

PayPal's maximum number of refund attempts for this transaction has been exceeded. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4020


[View source]
def self.paypal_refund_invalid_partial_amount #

PayPal Refund Invalid Partial Amount

The partial refund amount is not valid. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4022


[View source]
def self.paypal_refund_is_not_allowed_after_partial_refund #

Generate an amount for a all subsequent refunds must also be partial refunds for the remaining amount or less. Full refunds are not allowed after a PayPal transaction has been partially refunded. declined transaction PayPal refund is not allowed after partial refund

Once a PayPal transaction is partially refunded more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2095


[View source]
def self.paypal_refund_merchant_account_missing_ach #

PayPal Refund Merchant Account Missing ACH

Your PayPal account does not have an associated verified bank account. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4023


[View source]
def self.paypal_refund_transaction_not_allowed #

PayPal Refund Transaction Not Allowed

PayPal does not allow you to refund this type of transaction. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4021


[View source]
def self.paypal_refund_transaction_with_an_open_case_not_allowed #

PayPal Refund Transaction with an Open Case Not Allowed

PayPal declined to settle the refund request as there is an open dispute against the transaction. If you have enabled PayPal disputes within Braintree, you may resolve the dispute within the Braintree disputes dashboard. Otherwise, you may do so via your PayPal account's Resolution Center. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4019


[View source]
def self.paypal_rejected #

Generate an amount for a PayPal Rejected transaction

Processor Declined on PayPal transactions in the Mocked PayPal flow with a 2038 processor response. Authorized on all others more info: https://developers.braintreepayments.com/reference/general/testing/ruby#amount-500101


[View source]
def self.paypal_risk_rejected #

PayPal Risk Rejected

The sale request was rejected by PayPal risk. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4005


[View source]
def self.paypal_tax_info_required #

Generate an amount for a including submitting their phone number and all required tax information. declined transaction PayPal Tax Info Required

The customer must complete their PayPal account information more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2084


[View source]
def self.paypal_transaction_limit_exceeded #

Generate an amount for a Hard declined transaction PayPal Transaction Limit Exceeded

The settings on the customer's account do not allow a transaction amount this large. They will need to contact PayPal to resolve this issue. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2086


[View source]
def self.paypal_validation_error #

Generate an amount for a Hard declined transaction PayPal Validation Error

PayPal can't validate this transaction. Contact us for more details. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2073


[View source]
def self.pending #

Generate an amount for an authorized and pending transaction

Settlement Pending on PayPal transactions with a processor response equal to the amount; Settled on all others more info: https://developers.braintreepayments.com/reference/general/testing/ruby#amount-400200-400299


[View source]
def self.pin_try_exceeded #

Generate an amount for a Soft declined transaction PIN try exceeded

The allowable number of PIN tries has been exceeded. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2103


[View source]
def self.processor_declined #

Generate an amount for a Soft declined transaction Processor Declined

The customer's bank is unwilling to accept the transaction. The customer will need to contact their bank for more details regarding this generic decline. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2105-2999


[View source]
def self.processor_declined_fraud_suspected #

Generate an amount for a Hard declined transaction Processor Declined – Fraud Suspected

The customer’s bank suspects fraud – they will need to contact their bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2014


[View source]
def self.processor_declined_possible_lost_card #

Generate an amount for a Hard declined transaction Processor Declined – Possible Lost Card

The card used has likely been reported as lost. The customer will need to contact their bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2012


[View source]
def self.processor_declined_possible_stolen_card #

Generate an amount for a Hard declined transaction Processor Declined – Possible Stolen Card

The card used has likely been reported as stolen. The customer will need to contact their bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2013


[View source]
def self.processor_does_not_support_this_feature #

Generate an amount for a 3D Secure or Level 2/Level 3 data. If you believe your merchant account should be set up to accept this type of transaction declined transaction Processor Does Not Support This Feature

Your account can't process transactions with the intended feature – for example more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2023


[View source]
def self.processor_network_unavailable_try_again #

Generate an amount for a not necessarily a problem with the payment method. Have the customer attempt the transaction again – if the decline persists declined transaction Processor Network Unavailable – Try Again

This response could indicate a problem with the back-end processing network more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-3000


[View source]
def self.processor_unavailable #

Generate an amount for a n Processor Unavailable transaction

Processor Unavailable on certain transaction types with a processor response of 3000; Settled on all others more info: https://developers.braintreepayments.com/reference/general/testing/ruby#amount-500102


[View source]
def self.refund_time_limit_exceeded #

Generate an amount for a Hard declined transaction Refund Time Limit Exceeded

PayPal requires that refunds are issued within 180 days of the sale. This refund can't be successfully processed. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2065


[View source]
def self.reversal_amount_does_not_match_authorization_amount #

Generate an amount for a Hard declined transaction Reversal amount does not match authorization amount

Either the refund amount is greater than the original transaction or the card-issuing bank does not allow partial refunds. The customer will need to contact their bank for more information or use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2054


[View source]
def self.security_violation #

Generate an amount for a possibly due to a fraud concern. They will need to contact their bank or use a different payment method. declined transaction Security Violation

The customer's bank is declining the transaction more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2021


[View source]
def self.set_up_error_amount #

Generate an amount for a Hard declined transaction Set Up Error – Amount

This rare decline code indicates an issue with processing the amount of the transaction. The customer will need to contact their bank for more details. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2027


[View source]
def self.set_up_error_card #

Generate an amount for a Hard declined transaction Set Up Error – Card

This response generally indicates that there is a problem with the submitted card. The customer will need to use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2029


[View source]
def self.set_up_error_hierarchy #

Generate an amount for a Hard declined transaction Set Up Error – Hierarchy

There is a setup issue with your account. Contact us for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2028


[View source]
def self.set_up_error_merchant #

Generate an amount for a this response could indicate a connectivity or setup issue. Contact us for more information regarding this error message. declined transaction Set Up Error – Merchant

Depending on your region more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2025


[View source]
def self.set_up_error_terminal #

Generate an amount for a Hard declined transaction Set Up Error – Terminal

There is a setup issue with your account. Contact us for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2030


[View source]
def self.settlement_declined #

Settlement Declined

The processor declined to settle the sale or refund request. https://developers.braintreepayments.com/reference/general/processor-responses/settlement-responses#code-4001


[View source]
def self.surcharge_not_permitted #

Generate an amount for a Hard declined transaction Surcharge Not Permitted

Surcharge amount not permitted on this card. The customer will need to use a different payment method. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2032


[View source]
def self.transaction_amount_exceeds_the_transaction_division_limit #

Generate an amount for a Hard declined transaction Transaction amount exceeds the transaction division limit

Contact us for more information regarding this error message. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2056


[View source]
def self.transaction_not_allowed #

Generate an amount for a possibly due to an issue with the card itself. They will need to contact their bank or use a different payment method. declined transaction Transaction Not Allowed

The customer's bank is declining the transaction for unspecified reasons more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2015


[View source]
def self.transaction_refused_due_to_paypal_risk_model #

Generate an amount for a Hard declined transaction Transaction Refused Due To PayPal Risk Model

PayPal has declined this transaction due to risk limitations. You'll need to contact PayPal’s Support team to resolve this issue. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2077


[View source]
def self.violation #

Generate an amount for a Hard declined transaction Violation

The customer will need to contact their bank for more information. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2020


[View source]
def self.voice_authorization_required #

Generate an amount for a Hard declined transaction Voice Authorization Required

The customer’s bank is requesting that the merchant (you) call to obtain a special authorization code in order to complete this transaction. This can result in a lengthy process – we recommend obtaining a new payment method instead. Contact us for more details. more info: https://developers.braintreepayments.com/reference/general/processor-responses/authorization-responses#code-2011


[View source]