Test Card Numbers

How Card Payments Work

Lemonway provides its Partners with a complete solution for processing card payments.

At Lemonway, we offer several card payment options; you can find them here.

Card payments work in four key steps:

  1. Once the basket is confirmed, your customer clicks the payment button on your website or application.
  2. A card transaction with the status Pending is created in your Dashboard (Type = Incoming / Method = Card / Status = Pending).
  3. The payment page opens, where your customer enters their card details (network, number, expiry date, and CVC) and completes the payment.
  4. The transaction is updated with card information (first four and last two digits, issuing country, etc.). Its status changes and Lemonway deducts its fee.

Accepted card networks and supported currencies

NetworkCard typeGeographic areaAccepted currencies
CB (Carte Bancaire)Debit and CreditFranceEUR
VisaDebit and CreditInternationalEUR, GBP, CHF
MastercardDebit and CreditInternationalEUR, GBP, CHF

Activation of some networks may depend on your contract and geographic area. Contact your Account Manager to find out which networks are available in your configuration.

Pay In and Pay Out transactions are always processed in the currency of your Lemonway payment environment. Exchange rates are provided by the card-issuing bank. Other currencies may be activated on request, depending on your volumes.

Available Features and Card Registration

Depending on your contractual configuration, the following features are available:

FeatureDescription
One-shot paymentSingle transaction without saving the card
One-click paymentPayment using a saved (tokenised) card, initiated by the customer without re-entering their details
Card pre-authorisationHolds an amount on the card (for a deposit or when the final amount is unknown) for up to 6 days
Recurring payments (MIT)Merchant-initiated transactions, such as subscriptions, recurring debits and deferred billing
Delayed captureThe actual debit takes place after the authorisation phase
Partial or full refundRefund to the original card, through the Dashboard or API

One-click and MIT features use secure card tokenisation. Lemonway stores card details in accordance with PCI DSS standards and returns a unique identifier (card_id) during the first payment with card registration. This identifier is used for subsequent transactions, so the customer does not need to enter their details again.

Recurring payments (MIT) are subject to specific regulatory requirements, including initial consent and informing the cardholder. Make sure your integration meets these obligations before activation.

Transaction statuses

StatusDescription
SuccessThe transaction has completed, and the amount is credited to the beneficiary's payment account.
PendingThe amount has not yet been credited, but the status may change to Success or Error.
CancelledThe amount has not been credited. The customer did not complete the payment (for example, they closed the browser, did not enter the 3DS code, or the session timed out).

Test Cards (Sandbox Environment)

In the sandbox environment, use the card numbers below to simulate different payment behaviours. For all test cards, use:

  • Expiry date: any future date (for example, 12/26).
  • CVC: any three-digit code (for example, 123).

These test cards are valid only in the sandbox environment and when you are using Lemonway's new card structure. Using a test card in production results in an automatic decline (card.test).

For more information, contact your Account Manager or Lemonway Support.

Successful Payments

Card numberNetworkBehaviour
4242 4242 4242 4242VisaSuccessful payment
5555 5555 5555 4444MastercardSuccessful payment

Successful Payments by Issuing Country

Card numberCountryNetwork
4977 8300 0000 0001FranceVisa
4360 0000 0100 0005FranceVisa / Carte Bancaire (CB)
5130 2900 0000 0009FranceMastercard / Carte Bancaire (CB)
4658 5800 0000 0008United KingdomVisa
4023 6000 0000 0002ItalyVisa
4571 7300 0000 0003DenmarkVisa
4338 3000 0000 0009ArgentinaVisa
4835 9100 0000 0003ChinaVisa

Specific 3D Secure Behaviours

Card number3DS Behaviour
4000 0000 0000 01013DS required and supported (challenge)
4000 0000 0000 01193DS not supported by the card
4000 0000 0000 30553DS v2 - frictionless flow (without fingerprint)
4000 0000 0000 30633DS v2 - frictionless flow (with fingerprint)
4000 0000 0000 32533DS v2 required for SCA; no authentication for MITs
4000 0000 0000 02593DS v2 supported; v1 not supported
4000 0000 0000 32383DS v2 not supported; v1 supported
4000 0000 0000 32203DS v2 - fingerprint fails
4000 0000 0000 32463DS v1 required, but v2 not supported

Special Authorisation Behaviours

Card numberSimulated Behaviour
4000 0000 0000 0002Card declined
4000 0000 0000 0010Authorisation succeeds, but every capture fails
4000 0000 0000 2180Declined -card.do-not-honor
4000 0000 0000 2198Declined - card.possible-fraud
4000 0000 0000 2206Declined - card.no-money (insufficient funds)
4000 0000 0000 2214Declined -card.expired
4000 0000 0000 2222Declined - card.stolen (card reported stolen)
4000 0000 0000 2230Declined - card.failed-cvc (invalid CVC)
4000 0000 0000 2248Declined - card.failed-avs
4000 0000 0000 2255Declined - card.not-authorized
4000 0000 0000 2263Declined - card.inactive
4000 0000 0000 2271Declined - card.lost
4000 0000 0000 2289Declined - card.region-not-authorized
4127 9694 2058 7632Declined - card.blacklisted

Other Special Behaviours

Card numberSimulated Behaviour
4000 0000 0000 0028CVC verification fails
4000 0000 0000 1216Verification succeeds, but every transaction fails
4000 0000 0000 0069Payment succeeds, but a chargeback is initiated immediately
4000 0000 0000 0200Payment succeeds, but a failed chargeback is initiated immediately
4000 0000 0000 0309Payment succeeds, but a retrieval request is initiated immediately
4000 0000 0000 0077Payment succeeds, but every refund is declined
4000 0000 0000 4004Payment succeeds, but a fraud notification is sent
4000 0000 0000 6223Payment succeeds, but every incremental capture fails
4000 0000 0000 0531Authorisation succeeds, but every incremental authorisation fails
4000 0000 0000 3303Authorisation succeeds, but every incremental authorisation fails with card.no-money
4000 0000 0000 6009Verification succeeds, but new authorisations fail with card.no-money
4000 0000 0000 4301Verification succeeds, but new authorisations fail with card.expired
5337 4800 0000 7168The transaction fails with recommendation code do-not-retry

Error Codes

When a card transaction is declined, an error code is visible in the Lemonway Dashboard. The tables below help identify the reason for the decline and the recommended corrective action.

These codes are not returned in the API response and are visible only when using Lemonway's new card structure. For more information, contact your Account Manager or Lemonway Support.

Fraud and Security

Error codeDescriptionRecommended Action
gateway.possible-fraudTransaction flagged as potential fraudContact Lemonway Support
card.possible-fraudPayment blocked by the issuer for potential fraudContact the issuer
card.blacklistedCard is blacklisted — do not retryDo not retry
card.stolenCard reported stolen — do not retryDo not retry
card.lostCard reported lost — do not retryDo not retry
card.security-violationSecurity threat detected — do not retryDo not retry
card.high-riskTransaction flagged as high riskReview before retrying
card.possible-counterfeitCard may be counterfeitReview the transaction before retrying
routing-rules.transaction-blockedTransaction blocked by Lemonway rulesContact Lemonway Support

Card Validation Errors

Error codeDescription
card.invalidInvalid card (number, expiry date or CVC)
card.invalid-numberInvalid card number
card.invalid-expiry-dateInvalid expiry date
card.missing-cvcRequired CVC is missing
card.invalid-brandInvalid or unsupported card network
card.invalid-merchantInvalid merchant — contact Lemonway Support
card.invalid-nameInvalid cardholder name
card.invalid-expiry-monthInvalid expiry month
card.invalid-expiry-yearInvalid expiry year
card.missing-expiryExpiry date is missing
card.missing-numberCard number is missing
card.missing-nameCardholder name is missing
card.missing-pinPIN is missing
card.bad-track-dataInvalid track data (expiry date or CVC)
card.invalid-accountInvalid bank account
card.invalid-amountInvalid transaction amount
card.invalid-schemeInvalid or unsupported card scheme
card.invalid-transactionInvalid transaction
card.formatting-errorFormatting error
card.not-foundCard information not found

Issuer/Acquirer Errors

Error codeDescriptionRecommended Action
card.issuer-failedThe issuing bank encountered an errorRetry later
card.acquirer-failedProcessing failed on the acquirer sideContact Lemonway Support
card.issuer-downThe issuing bank is unavailableRetry later
card.network-failedUnable to contact the card networkContact Lemonway Support
card.issuer-maintenanceThe issuing bank is undergoing maintenanceRetry later
card.processing-errorProcessing failed on the acquirer/issuer sideContact Lemonway Support
card.issuer-not-foundIssuing bank not foundContact Lemonway Support
card.acquirer-not-foundAcquirer not foundContact Lemonway Support
card.issuer-malfunctionIssuing bank malfunctionRetry later

Generic Declines

Error codeDescriptionRecommended Action
card.declinedPayment declined; no additional information availableAsk the customer to contact their bank
card.do-not-honorGeneric decline by the issuing bank (default code)Ask the customer to contact their bank
card.please-retryPayment declined — retry is possibleRetry the transaction
card.dont-retryPayment declined — do not retryDo not retry
payment.declinedPayment declined; no additional information availableAsk the customer to contact their bank
card.no-action-takenNo action taken — retry the transactionRetry the transaction
gateway.declinedTransaction not processed for technical reasons. The card may belong to a network not supported by Lemonway, such as American Express (AMEX).Ask the cardholder to use a card from a network supported by Lemonway

Gateway Errors

Error codeDescriptionRecommended Action
gateway.blockedTechnical issueContact Lemonway Support
gateway.configuration-errorTechnical issueContact Lemonway Support
gateway.invalid-credentialsTechnical issueContact Lemonway Support
gateway.invalid-merchantTechnical issueContact Lemonway Support
gateway.forbiddenTechnical issueContact Lemonway Support
gateway.not-allowedTechnical issueContact Lemonway Support
gateway.internal-errorTechnical issueContact Lemonway Support
gateway.maintenanceTechnical issueContact Lemonway Support
gateway.network-errorTechnical issueContact Lemonway Support
gateway.timeoutTechnical issueContact Lemonway Support
gateway.unknown-errorTechnical issueContact Lemonway Support
gateway.duplicateTransaction is a duplicate or has already been processedCheck whether the transaction has already been processed
gateway.expiredGateway expiredContact Lemonway Support
gateway.limit-exceededGateway limit exceededContact Lemonway Support
gateway.rate-limit-exceededGateway rate limit exceededContact Lemonway Support
gateway.validation-errorTechnical issueContact Lemonway Support
gateway.not-foundGateway not foundContact Lemonway Support
gateway.transaction-not-foundTransaction not foundContact Lemonway Support
gateway.transaction-pendingTransaction pendingWait for the status to update
gateway.unsupported-country-codeUnsupported country codeContact Lemonway Support
gateway.unsupported-currencyCurrency not supported by the gatewayContact Lemonway Support
gateway.invalid-billing-addressInvalid billing addressCheck the billing address
gateway.invalid-stateInvalid transaction stateContact Lemonway Support
gateway.invalid-repeatInvalid repeated transactionContact Lemonway Support
gateway.retryTransaction should be retriedRetry the transaction

Card Status and Limits

Error codeDescriptionRecommended action
card.expiredCard expiredAsk the customer for a new card
card.not-activatedCard not yet activatedAsk the customer to activate the card
card.inactiveInactive cardAsk the customer to contact their bank
card.restrictedRestricted cardAsk the customer to contact their bank
card.revokedCard revoked — do not retryDo not retry
card.revoked-allAll of the cardholder's cards have been revokedDo not retry
card.exceeded-limitsCard limit reachedAsk the customer to contact their bank
card.exceeded-withdrawal-limitWithdrawal limit reachedAsk the customer to contact their bank
card.exceeded-activity-limitsActivity limit reachedAsk the customer to contact their bank
card.exceeded-maximum-amountMaximum amount exceededSplit the transaction or ask for another payment method
card.no-moneyInsufficient fundsAsk the customer to top up their account
card.no-credit-accountNo associated credit accountAsk for another payment method
card.no-savings-accountNo associated savings accountAsk for another payment method

Authentication and 3D Secure

Error codeDescriptionRecommended action
card.needs-authentication3DS authentication requiredContact Lemonway Support
card.missing-3dsRequired 3DS verification is missingContact Lemonway Support
card.unsupported-3dsCard does not support 3DS, although it is requiredAsk the cardholder to contact their bank or use another card
card.failed-3ds3DS verification failedAsk the customer to try again
card.expired-3ds3DS verification expiredAsk the customer to try again
card.couldnt-3dsUnable to perform 3DS authenticationContact Lemonway Support
card.failed-3ds-technicalTechnical failure during 3DSRetry later
card.unsupported-3ds2Card does not support 3DS2Ask the cardholder to contact their bank or use another card
card.invalid-eciInvalid e-commerce indicator (ECI)Contact Lemonway Support
card.eci-conflictECI conflictContact Lemonway Support
card.invalid-paresInvalid Payment Authentication Response (PARes)Contact Lemonway Support

CVC Verification

Error codeDescriptionRecommended action
card.failed-cvcCVC verification failedAsk the customer to check their CVC

Special Card States

Error codeDescriptionRecommended action
card.duplicateHigh probability of a duplicateCheck whether the transaction has already been processed
card.maximum-attemptsMaximum number of attempts reachedAsk the customer to contact their bank
card.not-supportedCard not supportedAsk for another payment method
card.already-blockedCard already blockedAsk the customer to contact their bank
card.already-capturedTransaction already capturedDo not retry
card.already-refusedTransaction already declinedDo not retry
card.pendingTransaction pendingWait for the status to update
card.timeoutTransaction timed outRetry the transaction
card.transaction-not-processedTransaction not processedContact Lemonway Support
card.contact-acquirerContact the acquirerContact Lemonway Support
card.contact-bankCustomer must contact their bankAsk the customer to contact their bank
card.canceled-by-clientTransaction cancelled by the customerNo action required
card.approve-after-identificationAdditional identification requiredAsk the customer to contact their bank
card.currency-unsupportedCurrency not supported by this cardCheck the transaction currency
card.type-not-supportedCard type not supportedAsk the cardholder to contact their bank or use another card
card.terminal-not-foundTerminal not foundContact Lemonway Support
card.terminal-not-initializedTerminal not initialisedContact Lemonway Support
card.physical-authentication-errorPhysical authentication errorContact Lemonway Support
card.no-cheque-accountNo associated current accountAsk for another payment method
card.invalid-bank-country-codeInvalid bank country codeContact Lemonway Support

Compliance and Special Situations

Error codeDescriptionRecommended action
request.transaction-blockedBlocked for compliance reasons. This may happen when the issuing bank previously declined a transaction made with this card and indicated that subsequent attempts should also be declined.Do not retry. Ask the customer to contact their bank
card.keep-cardCard must be retained — do not retryDo not retry
card.not-authorizedCard not authorised for this paymentAsk the customer for another payment method
card.region-not-authorizedNot authorised in this geographic regionContact Lemonway Support
card.authorization-revokedTransaction authorisation revokedDo not retry
card.law-violationTransaction violates legal provisionsDo not retry
card.holder-not-authorizedCardholder not authorisedAsk the customer to contact their bank
card.not-registeredCard not yet registeredAsk the customer to register the card
card.terminal-not-allowedCard not authorised on this terminalContact Lemonway Support
card.surcharge-not-allowedSurcharge not allowedContact Lemonway Support
card.surcharge-not-supportedSurcharge not supported by the cardContact Lemonway Support
card.exemption-declinedExemption declinedContact Lemonway Support
card.reauthorization-not-allowedRe-authorisation not allowedDo not retry
card.testTest card used in productionUse a real card in production

For any error code not listed here, or if further investigation is required, contact Lemonway Support and provide the transaction ID and error code.