Skip to content

Commit

Permalink
Merge pull request #2453 from mercadopago/docs/activities-0709
Browse files Browse the repository at this point in the history
Docs/activities-0609
  • Loading branch information
hgaldino authored Sep 7, 2024
2 parents 8c7d1dc + 4fe2bf4 commit 6e25477
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 493 deletions.
4 changes: 0 additions & 4 deletions guides/checkout-api-v2/add-new-cards-to-customer.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ If necessary, it is possible to add new cards to a specific customer. To do this

$customer_card = $client->create($customer->id, [
"token" => "your_card_token",
"issuer_id" => "2345",
"payment_method_id" => "debit_card"
]);

Expand All @@ -38,7 +37,6 @@ const customer = customerClient.get({ customerId: '<CUSTOMER_ID>' })

const body = {
token : result.token,
issuer_id: '2345',
payment_method: 'debit_card'
};

Expand Down Expand Up @@ -79,7 +77,6 @@ customer = customer_response[:response]

card_request = {
token: '9b2d63e00d66a8c721607214cedaecda',
issuer_id: '3245612',
payment_method_id: 'debit_card'
}
card_response = sdk.card.create(customer['id'], card_request)
Expand Down Expand Up @@ -114,7 +111,6 @@ customer = customer_response["response"]

card_data = {
"token": "9b2d63e00d66a8c721607214cedaecda",
"issuer_id": "3245612",
"payment_method_id": "debit_card"
}
card_response = sdk.card().create(customer["id"], card_data)
Expand Down
4 changes: 0 additions & 4 deletions guides/checkout-api-v2/add-new-cards-to-customer.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Si es necesario, es posible agregar nuevas tarjetas a un cliente específico. Pa

$customer_card = $client->create($customer->id, [
"token" => "your_card_token",
"issuer_id" => "2345",
"payment_method_id" => "debit_card"
]);

Expand All @@ -38,7 +37,6 @@ const customer = customerClient.get({ customerId: '<CUSTOMER_ID>' })

const body = {
token : result.token,
issuer_id: '2345',
payment_method: 'debit_card'
};

Expand Down Expand Up @@ -79,7 +77,6 @@ customer = customer_response[:response]

card_request = {
token: '9b2d63e00d66a8c721607214cedaecda',
issuer_id: '3245612',
payment_method_id: 'debit_card'
}
card_response = sdk.card.create(customer['id'], card_request)
Expand Down Expand Up @@ -114,7 +111,6 @@ customer = customer_response["response"]

card_data = {
"token": "9b2d63e00d66a8c721607214cedaecda",
"issuer_id": "3245612",
"payment_method_id": "debit_card"
}
card_response = sdk.card().create(customer["id"], card_data)
Expand Down
4 changes: 0 additions & 4 deletions guides/checkout-api-v2/add-new-cards-to-customer.pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Caso necessário, é possível adicionar novos cartões a um determinado cliente

$customer_card = $client->create($customer->id, [
"token" => "your_card_token",
"issuer_id" => "2345",
"payment_method_id" => "debit_card"
]);

Expand All @@ -38,7 +37,6 @@ const customer = customerClient.get({ customerId: '<CUSTOMER_ID>' })

const body = {
token : result.token,
issuer_id: '2345',
payment_method: 'debit_card'
};

Expand Down Expand Up @@ -79,7 +77,6 @@ customer = customer_response[:response]

card_request = {
token: '9b2d63e00d66a8c721607214cedaecda',
issuer_id: '3245612',
payment_method_id: 'debit_card'
}
card_response = sdk.card.create(customer['id'], card_request)
Expand Down Expand Up @@ -114,7 +111,6 @@ customer = customer_response["response"]

card_data = {
"token": "9b2d63e00d66a8c721607214cedaecda",
"issuer_id": "3245612",
"payment_method_id": "debit_card"
}
card_response = sdk.card().create(customer["id"], card_data)
Expand Down
6 changes: 2 additions & 4 deletions guides/checkout-api-v2/create-customer-and-card.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ customer = customer_response[:response]

card_request = {
token: '9b2d63e00d66a8c721607214cedaecda',
issuer_id: '3245612',
payment_method_id: 'visa'
}
card_response = sdk.card.create(customer['id'], card_request)
Expand Down Expand Up @@ -113,7 +112,6 @@ customer = customer_response["response"]

card_data = {
"token": "9b2d63e00d66a8c721607214cedaecda",
"issuer_id": "3245612",
"payment_method_id": "visa"
}
card_response = sdk.card().create(customer["id"], card_data)
Expand Down Expand Up @@ -168,7 +166,7 @@ curl -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ENV_ACCESS_TOKEN' \
'https://api.mercadopago.com/v1/customers/CUSTOMER_ID/cards' \
-d '{"token": "9b2d63e00d66a8c721607214cedaecda", "issuer_id": "3245612", "payment_method_id": "visa"}'
-d '{"token": "9b2d63e00d66a8c721607214cedaecda", "payment_method_id": "visa"}'
```
]]]
Expand Down Expand Up @@ -199,4 +197,4 @@ The response will bring the following result.
>
> Attention
>
> If the request response returns an error like `invalid parameter` with HTTP code 400, review the `payment_method_id` and `issuer_id` parameters to ensure that the values have been entered correctly. Also, when using test users, keep in mind the following format for customer email: `test_payer_[0-9]{1,10}@testuser.com` For example: `[email protected]`.
> If the request response returns an error like `invalid parameter` with HTTP code 400, review the `payment_method_id` parameter to ensure that the value have been entered correctly. Also, when using test users, keep in mind the following format for customer email: `test_payer_[0-9]{1,10}@testuser.com` For example: `[email protected]`.
6 changes: 2 additions & 4 deletions guides/checkout-api-v2/create-customer-and-card.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ customer = customer_response[:response]

card_request = {
token: '9b2d63e00d66a8c721607214cedaecda',
issuer_id: '3245612',
payment_method_id: 'visa'
}
card_response = sdk.card.create(customer['id'], card_request)
Expand Down Expand Up @@ -113,7 +112,6 @@ customer = customer_response["response"]

card_data = {
"token": "9b2d63e00d66a8c721607214cedaecda",
"issuer_id": "3245612",
"payment_method_id": "visa"
}
card_response = sdk.card().create(customer["id"], card_data)
Expand Down Expand Up @@ -168,7 +166,7 @@ curl -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ENV_ACCESS_TOKEN' \
'https://api.mercadopago.com/v1/customers/CUSTOMER_ID/cards' \
-d '{"token": "9b2d63e00d66a8c721607214cedaecda", "issuer_id": "3245612", "payment_method_id": "visa"}'
-d '{"token": "9b2d63e00d66a8c721607214cedaecda", "payment_method_id": "visa"}'
```
]]]
Expand Down Expand Up @@ -199,4 +197,4 @@ La respuesta dará el siguiente resultado
>
> Atención
>
> Si la respuesta de la solicitud devuelve un error del tipo `invalid parameter` con el código HTTP 400, verifica los parámetros `payment_method_id` y `issuer_id` y asegúrate de que los valores se hayan introducido correctamente. Además, cuando estés utilizando usuarios de prueba, recuerda respetar el siguiente formato para el email del cliente: test_payer_[0-9]{1,10}@testuser.com. Por ejemplo: [email protected].
> Si la respuesta de la solicitud devuelve un error del tipo `invalid parameter` con el código HTTP 400, verifica el parámetro `payment_method_id` y asegúrate de que el valor se haya introducido correctamente. Además, cuando estés utilizando usuarios de prueba, recuerda respetar el siguiente formato para el email del cliente: test_payer_[0-9]{1,10}@testuser.com. Por ejemplo: [email protected].
6 changes: 2 additions & 4 deletions guides/checkout-api-v2/create-customer-and-card.pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ customer = customer_response[:response]

card_request = {
token: '9b2d63e00d66a8c721607214cedaecda',
issuer_id: '3245612',
payment_method_id: 'visa'
}
card_response = sdk.card.create(customer['id'], card_request)
Expand Down Expand Up @@ -113,7 +112,6 @@ customer = customer_response["response"]

card_data = {
"token": "9b2d63e00d66a8c721607214cedaecda",
"issuer_id": "3245612",
"payment_method_id": "visa"
}
card_response = sdk.card().create(customer["id"], card_data)
Expand Down Expand Up @@ -168,7 +166,7 @@ curl -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ENV_ACCESS_TOKEN' \
'https://api.mercadopago.com/v1/customers/CUSTOMER_ID/cards' \
-d '{"token": "9b2d63e00d66a8c721607214cedaecda", "issuer_id": "3245612", "payment_method_id": "visa"}'
-d '{"token": "9b2d63e00d66a8c721607214cedaecda", "payment_method_id": "visa"}'
```
]]]
Expand Down Expand Up @@ -199,4 +197,4 @@ A resposta trará o seguinte resultado.
>
> Atenção
>
> Caso a resposta da requisição retorne um erro do tipo `invalid parameter` com código HTTP 400, revise os parâmetros `payment_method_id` e `issuer_id` e garanta que os valores tenham sido inseridos de maneira correta. Além disso, ao utilizar usuários de teste, tenha em mente o seguinte formato para o e-mail do cliente: `test_payer_[0-9]{1,10}@testuser.com` Por exemplo: `[email protected]`.
> Caso a resposta da requisição retorne um erro do tipo `invalid parameter` com código HTTP 400, revise o parâmetro `payment_method_id` e garanta que o valor tenha sido inserido de maneira correta. Além disso, ao utilizar usuários de teste, tenha em mente o seguinte formato para o e-mail do cliente: `test_payer_[0-9]{1,10}@testuser.com` Por exemplo: `[email protected]`.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ Once the token is obtained, it is necessary to create the payment with the corre
"description" => "My product",
"installments" => 1,
"payment_method_id" => "visa",
"issuer_id" => "123",
"payer" => [
"type" => "customer",
"id" => "1234"
Expand All @@ -245,7 +244,6 @@ customerClient.listCards({ customerId: '<CUSTOMER_ID>' })
description: 'My product',
installments: 1,
payment_method_id: 'visa',
issuer_id: 123,
payer: {
type: 'customer',
id: '123'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ Después de obtener el token, es necesario crear el pago con el importe correspo
"description" => "My product",
"installments" => 1,
"payment_method_id" => "visa",
"issuer_id" => "123",
"payer" => [
"type" => "customer",
"id" => "1234"
Expand All @@ -232,7 +231,6 @@ customerClient.listCards({ customerId: '<CUSTOMER_ID>' })
description: 'My product',
installments: 1,
payment_method_id: 'visa',
issuer_id: 123,
payer: {
type: 'customer',
id: '123'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ Uma vez obtido o token, é preciso criar o pagamento com o valor correspondente.
"description" => "My product",
"installments" => 1,
"payment_method_id" => "visa",
"issuer_id" => "123",
"payer" => [
"type" => "customer",
"id" => "1234"
Expand All @@ -250,7 +249,6 @@ customerClient.listCards({ customerId: '<CUSTOMER_ID>' })
description: 'My product',
installments: 1,
payment_method_id: 'visa',
issuer_id: 123,
payer: {
type: 'customer',
id: '123'
Expand Down
111 changes: 0 additions & 111 deletions guides/shopify/integration-test-mlb.en.md

This file was deleted.

Loading

0 comments on commit 6e25477

Please sign in to comment.