Skip to main content

Sincpro Payments SDK

SDK para integración con pasarelas de pago y servicios bancarios, construido sobre el Sincpro Framework con arquitectura hexagonal.


Bounded Contexts

cybersource — Pagos con tarjeta (Cybersource)

Proveedor: Cybersource / Linkser

Use case Command
Tokenizar tarjeta CommandCreatePaymentMethod
Tokenizar tarjeta + cliente CommandCreateCustomerPaymentMethod
Pago tarjeta nueva (enrollment) CommandPayNewCardEnrollment
Pago tarjeta nueva (validación) CommandPayNewCardValidation
Pago tarjeta guardada (enrollment) CommandPaySavedCardEnrollment
Pago tarjeta guardada (validación) CommandPaySavedCardValidation
Pago recurrente CommandRecurringPayment
Cancelar / reembolso CommandCancelOrRefund
Pre-pago: setup auth CommandSetupAuth
Pre-pago: iniciar monitor CommandStartMonitorAuth
Pre-pago: verificar 3DS CommandCheckRequireAuth
Pre-pago: validar auth CommandValidateAuth
from sincpro_payments_sdk.apps.cybersource import cybersource, tokenization

result = cybersource(
    tokenization.CommandCreatePaymentMethod(...),
    tokenization.ResponseCreatePaymentMethod,
)

qr — Pagos QR

Tres proveedores bajo el mismo bounded context:

BNB

Use case Command
Autenticar CommandAuthenticateBNB
Crear QR CommandCreateQR
Verificar estado CommandCheckQRStatus
Listar QRs CommandListQRs
Cancelar QR CommandCancelQR

Banco Económico

Use case Command
Autenticar CommandAuthenticateEconomico
Crear QR CommandCreateQR
Verificar estado CommandCheckQRStatus
QRs cobrados CommandGetPaidQRs
Cancelar QR CommandCancelQR

Linkser

Use case Command
Crear QR CommandCreateQR
Verificar estado CommandCheckQRStatus
from sincpro_payments_sdk.apps.qr import qr, economico, bnb, linkser

auth = qr(
    economico.CommandAuthenticateEconomico(user_name="...", password="...", aes_key="..."),
    economico.ResponseAuthenticateEconomico,
)
qr_image = qr(economico.CommandCreateQR(...), economico.ResponseCreateQR)

bank_account — Extractos bancarios

Dos proveedores bajo el mismo bounded context:

Banco Económico

Use case Command
Autenticar CommandAuthenticateEconomico
Consultar movimientos CommandGetMovements
from sincpro_payments_sdk.apps.bank_account import bank_account, economico

auth = bank_account(
    economico.CommandAuthenticateEconomico(user_name="...", password="...", aes_key="..."),
    economico.ResponseAuthenticateEconomico,
)
movements = bank_account(
    economico.CommandGetMovements(account_code="...", start_date=..., end_date=...),
    economico.ResponseGetMovements,
)

BNB

Use case Command
Autenticar CommandAuthenticateBnb
Últimos 30 movimientos CommandGetStatement
Extracto histórico CommandGetHistoricalStatement
from datetime import date

from sincpro_payments_sdk.apps.bank_account import bank_account, bnb
from sincpro_payments_sdk.apps.bank_account.domain import BNBProductType

auth = bank_account(
    bnb.CommandAuthenticateBnb(account_id="...", auth_id="..."),
    bnb.ResponseAuthenticateBnb,
)
last_movements = bank_account(
    bnb.CommandGetStatement(
        account_number=2000050000, product_type=BNBProductType.CUENTA_CORRIENTE
    ),
    bnb.ResponseGetStatement,
)
historical = bank_account(
    bnb.CommandGetHistoricalStatement(
        account_number=2000050000,
        initial_date=date(2026, 1, 1),
        final_date=date(2026, 1, 31),
    ),
    bnb.ResponseGetHistoricalStatement,
)

Documentación

Documentación detallada de DTOs, Features y Application Services disponible en generated_docs/site/index.html.

Para regenerar:

make docs

Desarrollo

make install          # instalar dependencias
make format           # formatear código (obligatorio antes de commit)
make test             # ejecutar tests
make test_one t=<archivo>  # test específico

Metadata

Release files for sincpro-payments-sdk 6.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sincpro-payments-sdk 6.0.3
File Size Uploaded Provenance Actions
sincpro_payments_sdk-6.0.3.tar.gz 76.6 kB Without provenance Details for sincpro_payments_sdk-6.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sincpro-payments-sdk 6.0.3
File Interpreter ABI Platform Actions
sincpro_payments_sdk-6.0.3-py3-none-any.whl Python 3 none any Details for sincpro_payments_sdk-6.0.3-py3-none-any.whl

Total release size: 196.7 kB

Release files / sincpro_payments_sdk-6.0.3.tar.gz

Download URL sincpro_payments_sdk-6.0.3.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5684f38cde0326d3f1077b5595c6d4aab842bf1cfafe2f98371d1fd4782b82e5
BLAKE2b-256 checksum
How to use checksums
6c5d8792603da520f7702897ddbb330652a30b6104517a091ffafeed86a8f24e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.3 Linux/7.0.0-38-generic

Release files / sincpro_payments_sdk-6.0.3-py3-none-any.whl

Download URL sincpro_payments_sdk-6.0.3-py3-none-any.whl
Size 120.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b3fe75c6edaeb8c77a9258cd21970aa490b43b4a249bbf28c5c2a8c62316db5
BLAKE2b-256 checksum
How to use checksums
c130845221d1f9643f2875069e3912f13d0f35daad9782a59c92da6706aa7c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.3 Linux/7.0.0-38-generic

Security for sincpro-payments-sdk 6.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page