Skip to content

[PAY-11162]: Agregar confirm de checkout sessions v2 - #141

Merged
mari-hernandez merged 1 commit into
masterfrom
pay-11162-agregar-cambios-en-sdk-de-python
Nov 12, 2026
Merged

mari-hernandez merged 1 commit into
masterfrom
pay-11162-agregar-cambios-en-sdk-de-python

Conversation

@mari-hernandez

@mari-hernandez mari-hernandez commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

Estoy sumando Checkout Fields: campos de tarjeta de Fintoc que el merchant monta en su propia página. Cuando el consumer escribe la tarjeta, el backend del merchant cobra con POST /v2/checkout_sessions/{id}/confirm. Esta PR lleva ese endpoint al SDK.

  • client.v2.checkout_sessions.confirm(id) cobra la tarjeta y devuelve la Checkout Session, igual que expire. Si responde 202 (resultado pendiente), se vuelve a llamar.
  • ui_mode: "fields" y payment_method_options.card.bins ya se pueden mandar en create, porque el SDK pasa los params tal cual.
  • Los rechazos (402 card_declined, 409 como charge_in_progress) llegan como cualquier error de la API.

Tests: unit tests.

Release notes

  • Added client.v2.checkout_sessions.confirm(id) to confirm the card payment of a Checkout Session created with ui_mode: "fields".

Requirements

None.

Additional changes

None.

@mari-hernandez

Copy link
Copy Markdown
Contributor Author

fin review

@fin-review fin-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@mari-hernandez
mari-hernandez marked this pull request as ready for review November 12, 2026 12:18
@mari-hernandez mari-hernandez added the release:minor Publica una versión minor al mergear label Nov 12, 2026

@fin-review fin-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@mari-hernandez
mari-hernandez merged commit 0427cf0 into master Nov 12, 2026
10 checks passed
@mari-hernandez
mari-hernandez deleted the pay-11162-agregar-cambios-en-sdk-de-python branch November 12, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:minor Publica una versión minor al mergear risk:low size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant