Skip to main content

Paylands concepts

Environments

In Paylands we have two different environments to make requests to: Sandbox and Production. Each of these environments must be called with different data, i.e. the API KEY, the service, order or card identifiers will be different depending on the environment in which the call is made.

Sandbox environment

The Sandbox environment is an environment created for system testing. This environment is usually used for gateway integration, and all operations performed in this environment are done through the test services, so payments made through this environment do not handle real money.

In this environment, specific test cards must be used, in order to control the different responses that can be received (SUCCESS, ERROR...).

The URL of this environment is: https://api.paylands.com/v1/sandbox/

Production environment

The Production environment is the final environment of the system. All payments made in this environment are handled with real money. Therefore, since transactions in this environment already contact the issuing bank of the cards used, they must be real cards.

The URL of this environment is: https://api.paylands.com/v1/

Operational

The operations indicate the types of payments that can be made through the platform.

The type of operative is specified by the operative attribute in the order creation call to /payment. Once the order operation has been configured, the request must be sent to the corresponding endpoint in order to perform the subsequent actions. These endpoints, the parameters they receive and all the necessary information can be found in the Payments section. Below we indicate the actions that can be performed by each operation.

Authorization

Collection order effective at the time of the transaction.

CodeDescription
AUTHORIZATIONPerforms a payment on the created order. The URL is /payment/direct
REFUNDPerforms a total or partial refund of a payment. The URL is /payment/refund

Deferred

Allows a charge to be sent for later confirmation. It does not perform any check or debit.

CodeDescription
CONFIRMATIONEnforces the previously held charge. The URL is /payment/confirmation
CANCELLATIONReleases the previously held amount (if not yet confirmed). The URL is /payment/cancellation
REFUNDPerforms a full or partial refund after a confirmation of a hold. The URL is /payment/refund

Payout

Allows you to deposit an amount of money to a card. Depending on the acquirer, the card may need to have been previously operated on the terminal.

CodeDescription
PAYOUTCredit the card. The URL where to make the request is /payment/payout

Transfer

Allows you to make a money transfer to a specific destination.

CodeDescription
TRANSFERMake the transfer. The URL is /payment/transfer
CANCELLATIONIf possible, performs the cancellation of the transfer. The URL is /payment/transfer/cancellation

Order statuses

During the payment process, orders change status to reflect information about the payment, that information is in the status field of the order object.

The Order status can have the following values:

ValueDescription
BLACKLISTEDOperation rejected by the black list
CANCELLEDPreauthorization cancelled by client
CREATEDPayment Order Initiated
EXPIREDTransaction that has been too long on card hold
FRAUDTransaction rejected by the anti-fraud system
PARTIALLY_REFUNDEDPartially refunded transaction
PARTIALLY_CONFIRMEDPreauthorization partially confirmed
PENDING_CONFIRMATIONPreauthorization that has placed a hold on the user's account and is waiting for the customer to confirm the hold
REFUNDEDThe transaction has been returned
SUCCESSSuccessfully completed transaction
REFUSEDTransaction rejected by bank
PENDING_PROCESSOR_RESPONSETransaction without 3DS that has been sent to the processor
PENDING_3DS_RESPONSEUser is on 3DS
PENDING_CARDUser is on the payment card inserting his card
USER_CANCELLEDThe user has canceled the payment from the payment card
REDIRECTED_TO_3DSPayment has been attempted but for security reasons the user must manually authorize the payment.
AUTHENTICATION_REQUIREDThe bank has required authentication for this transaction and is waiting for the user to access the 3DS
PENDING_PAYMENTThe user has provided all the necessary data to carry out the payment, and is awaiting confirmation from the payment provider.
THREEDS_EXPIREDThe transaction has arrived on 3DS but the user has abandoned the process, and has not been authenticated

Transaction status

Like orders, transactions also reflect transaction status information in the status field of the transaction object.

These are the values you can find in a Transaction:

ValueDescription
CREATEDWhen we have not yet received a response from the acquirer with the final result of the transaction.
SUCCESSThe transaction has arrived at the processor and has been successfully completed.
REFUSEDThe transaction has arrived at the processor but has been completed incorrectly (incorrect card, insufficient funds, etc.).
ERRORThe transaction could not be completed due to an error in the service configuration.
PENDINGWhen the transaction is pending to be validated by the processor
CANCELLEDWhen the transaction has been rejected by the processor.