Skip to main content

Implementation

Overview

Geopagos provides a transactional API designed to enable your application to accept payments using your own physical device.

Sequence diagram

This flow represents a generic way to perform an authorization.

tip

Starting with the new version of sdk 19.1.15 the in-person payments flow, one of the methods has been deprecated for new integrations, although it will continue to function for previous versions during a transition period.

This update brings performance improvements and allows the removal of the /api/v1/sales/confirm call, as long as the new flow is properly implemented.

To enable this functionality, the /authorization_code/ field must be included in the response. When this field is provided, the following endpoints are no longer necessary:

POST | /api/v1/sales/confirm

POST | /api/v1/refunds/confirm

POST | /api/v1/annulments/confirm

The value for authorization_code must be taken from the response received when calling POST /api/v1/sales.

You can see the details in Confirm a payment

info

the application backend can be provided by the implementor or Geopagos.

Sale

OperationMethodEndpoint
InitializePOST/api/v4/payments/presentDocumentation
Request authorizationPOST/api/v1/salesDocumentation
Confirm authorizationPOST/api/v1/sales/confirmDocumentation
ConfirmPATCH/api/v4/payments/{reference_number}/confirmDocumentation

Refund

OperationMethodEndpoint
InitializePOST/api/v4/refunds/presentDocumentation
Request authorizationPOST/api/v1/refundsDocumentation
Confirm authorizationPOST/api/v1/refunds/confirmDocumentation
ConfirmPATCH/api/v4/refunds/{reference_number}/confirmDocumentation

Annulment

OperationMethodEndpoint
Request authorizationPOST/api/v1/annulmentsDocumentation
Confirm authorizationPOST/api/v1/annulments/confirmDocumentation
ConfirmPATCH/api/v4/refunds/{reference_number}/confirmDocumentation
info

If the application backend doesn't send the final confirmation (last step), the transaction will be reversed.

More information

See the API Reference for detail information about the integration.