Skip to content

Recurring payments #34

Closed Answered by samhermeli
ignaciobrana asked this question in Q&A
Sep 9, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hola Ignacio!

Para cobros futuros siempre podrás buscar tus clientes nuevamente con el email con este curl:

curl --location --request GET 'https://api.mercadopago.com/v1/customers/search' \
--header 'accept: application/json' \
--header 'Authorization: Bearer {{Access-Token}}' \
--header 'Content-Type: application/json' \
--data-raw '{"email":"{{emailusuario}}"}'

y así obtener el cutomer_id para posteriormente buscar las tarjetas asociadas:

curl --location --request GET 'https://api.mercadopago.com/v1/customers/{{Customer-Id}}/cards' \
--header 'accept: application/json' \
--header 'Authorization: Bearer {{Access-Token}}'

Una vez tienes ambos datos, puedes generar un token de pago con e…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ignaciobrana
Comment options

@samhermeli
Comment options

@ignaciobrana
Comment options

@samhermeli
Comment options

Answer selected by NicholasPedroso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants