Introduction

Card is one of the payment methods available in the create payment service.


Status

StatusReasonDescription
Opened-The order was created and inprogress.
Authorized-The order was authorized.
Collected-The order was created and paid for.
Cancelled-The state of an Opened order that expired or was cancelled by calling cancelation operation.
Voided-The state of an Authorized order that expired or was voided by calling cancelation operation.
FailedRejectedThe transaction was declined. The acquirer does not allow this transaction to be processed.
FailedInsufficientFundsThe transaction was declined because the card has insufficient funds. Please try a different card.
FailedInvalidCardThe transaction was declined because the card details are invalid. Please try again.
FailedReferredThe transaction was declined. The customer should contact their bank.
FailedExpiredCardThe transaction was declined because the card is expired. Please try a different card.
FailedInvalidConfigurationThe transaction was declined due to a processing error. Contact Koin for more details.
FailedInvalidPlanConfigurationThe transaction was declined due to missing configuration for this card brand/type/account. Contact Koin for more details.
FailedUndefinedThe transaction was declined due to an unexpected error.
FailedStolenCardThe transaction was declined because the card is reported as stolen (fraud). Please try a different card.
FailedConnectionRefusedThe transaction was declined due to a processing error. The acquirer and supplier are working on it.
FailedInvalidDataThe transaction was declined due to a processing error. Contact Koin for more details.

When the order status changes a webhook notification will be sent.


Testing environment mocks

In order to test all scenarios in a testing environment, you can use the order amount to force the order status in the create payment response. For example, if the order amount is less than 5001, the order status will be "Authorized" and after a couple of minutes, it will capture and change to "Collected". In the table below you can find other options.

AmountResponse statusStatus changeResponse reason
Amount <= 5.000AuthorizedCollected
5.001 – 10.000Failed–ChannelRejected
10.001 – 15.000Failed–InsufficientFunds
15.001 – 20.000Failed–InvalidCard
20.001 – 25.000Failed–InvalidData
25.001 – 30.000Failed–Referred
30.001 – 35.000Failed–ExpiredCard
35.001 – 40.000Failed–StolenCard
40.001 – 45.000Failed–ConnectionRefused
45.001 – 50.000Failed–InvalidConfiguration
50.001 – 55.000Failed–Undefined
56.001 – 57.000OpenedFailedReferred
57.001 – 58.000OpenedAuthorizedAuthorized
Amount > 150.000AuthorizedCollected