diff --git a/guides/additional-content/reports/general-considerations/reconciliation-reports.en.md b/guides/additional-content/reports/general-considerations/reconciliation-reports.en.md index 558be7741f..9e716a6bbf 100644 --- a/guides/additional-content/reports/general-considerations/reconciliation-reports.en.md +++ b/guides/additional-content/reports/general-considerations/reconciliation-reports.en.md @@ -4,15 +4,15 @@ The reports from Mercado Pago provide financial information to track the movemen > WARNING > -> The Available Money report was disabled on March 1, 2022 +> The Available money report was disabled on March 1, 2022 > -> You can use the [Released Money Report](https://www.mercadopago[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/released-money/introduction) to reconcile the transactions that affect the balance available in your account, including your bank withdrawals. +> You can use the [Released money Report](https://www.mercadopago[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/released-money/introduction) to reconcile the transactions that affect the balance available in your account, including your bank withdrawals. Check the table below for more details on the available report types. | Report type | Description | |---|---| -| Released Money Report | Provides the composition of the available balance in your account, with details about the values involved in a specific period. Read the [Released Money documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/released-money/introduction) for more information. | -| Account Money Report | Informs about transactions/movements that have affected your account balance. For more information, read the [Account Money documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/account-money/introduction). | -| Available Money Report | Presents the liquidity of your business, detailing the available amount in the account for use. For more information, read the [Available Money documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/available-money/introduction).
**This report is no longer available**. Use the [Released Money Report](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/released-money/introduction) to reconcile transactions that constitute the available balance in your account, including bank withdrawals. | -| Mercado Pago’s split payment solution sales report | The Mercado Pago’s split payment solution sales report offers a comprehensive overview of transactions from linked sellers, available for download in _csv_ and js_on formats. To learn more, read the [documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/docs/checkout-pro/additional-content/reports/sales-report/introduction). | \ No newline at end of file +| Released Money Report | Provides the composition of the available balance in your account, with details about the values involved in a specific period. Read the [Released money documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/released-money/introduction) for more information. | +| Account Money Report | Informs about transactions/movements that have affected your account balance. For more information, read the [Account money documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/account-money/introduction). | +| Available Money Report | Presents the liquidity of your business, detailing the available amount in the account for use. For more information, read the [Available money documentation](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/available-money/introduction).
**This report is no longer available**. Use the [Released Money Report](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/en/guides/additional-content/reports/released-money/introduction) to reconcile transactions that constitute the available balance in your account, including bank withdrawals. | +| Mercado Pago’s split payment solution sales report | The Mercado Pago’s split payment solution sales report offers a comprehensive overview of transactions from linked sellers, available for download in _csv_ and js_on formats. To learn more, read the [documentation](/developers/en/docs/checkout-pro/additional-content/reports/sales-report/introduction). | \ No newline at end of file diff --git a/guides/additional-content/reports/general-considerations/reconciliation-reports.es.md b/guides/additional-content/reports/general-considerations/reconciliation-reports.es.md index 7828f254ec..3af12194c0 100644 --- a/guides/additional-content/reports/general-considerations/reconciliation-reports.es.md +++ b/guides/additional-content/reports/general-considerations/reconciliation-reports.es.md @@ -4,7 +4,7 @@ Los reportes de Mercado Pago proporcionan información financiera para dar segui > NOTE > -> El reporte de Dinero Disponible fue deshabilitado el 1 de marzo de 2022 +> El reporte de Dinero disponible fue deshabilitado el 1 de marzo de 2022 > > Puedes usar el [reporte de ----[mla]----Liquidaciones------------ ----[mlm, mlb, mlc, mco, mlu, mpe]----Liberaciones------------](https://www.mercadopago[FAKER][URL][DOMAIN]/developers/es/guides/additional-content/reports/released-money/introduction) para realizar la conciliación de las transacciones que afecten el saldo disponible en su cuenta, incluyendo sus retiros bancarios. @@ -15,5 +15,5 @@ Consulta la tabla a continuación para obtener más detalles sobre los tipos de | ----[mlm, mlb, mlc, mco, mlu, mpe]---- Reporte de Liberaciones ------------ ----[mla]---- Reporte de Liquidaciones ------------ | Proporciona la composición del saldo disponible en su cuenta, con detalles sobre los valores involucrados en un período determinado. Consulte la [documentación de ----[mla]----Liquidaciones------------ ----[mlm, mlb, mlc, mco, mlu, mpe]----Liberaciones------------](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/es/guides/additional-content/reports/released-money/introduction) para obtener más información. | | Reporte de Dinero en cuenta | Informa sobre las transacciones/movimientos que afectaron su saldo en cuenta. Para obtener más información, consulte la [documentación de Dinero en cuenta](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/es/guides/additional-content/reports/account-money/introduction). | | Reporte de Dinero disponible | Presenta la liquidez de su negocio, detallando el valor disponible en cuenta para su uso. Para obtener más información, consulte la [documentación de Dinero disponible](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/es/guides/additional-content/reports/available-money/introduction).
**Este reporte ya no está disponible**. Utilice el [Reporte de Liberaciones](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/es/guides/additional-content/reports/released-money/introduction) para conciliar las transacciones que componen el saldo disponible en su cuenta, incluyendo los retiros bancarios. | -| Reportes de Facturación | El **Marketplace de Mercado Libre** ha desarrollado una serie de reportes de facturación para proporcionar detalles financieros de las transacciones realizadas en Mercado Pago a partir de las ventas en Mercado Libre.

Los datos de los reportes también incluyen información financiera de usuarios que no realizan ventas en Mercado Libre, ya que los datos de facturación son de Mercado Pago. Para obtener más información, consulte la [documentación](https://developers.mercadolibre.com.ar/es_ar/reportes-de-facturacion).| -| Reporte de Ventas de la Solución Split de Pagos do Mercado Pago | El Reporte de ventas de la solución split de pagos do Mercado Pago ofrece una visión completa de las transacciones de los vendedores vinculados, disponible para su descarga en los formatos _csv_ y _json_. Para obtener más información, consulte la [documentación](https://www.mercadopago.com[FAKER][URL][DOMAIN]/developers/es/docs/checkout-pro/additional-content/reports/sales-report/introduction). | \ No newline at end of file +| Reportes de Facturación | El **Marketplace de Mercado Libre** ha desarrollado una serie de reportes de facturación para proporcionar detalles financieros de las transacciones realizadas en Mercado Pago a partir de las ventas en Mercado Libre.

Los datos de los reportes también incluyen información financiera de usuarios que no realizan ventas en Mercado Libre, ya que los datos de facturación son de Mercado Pago. Para obtener más información, consulte la ----[mlb]----[documentación](https://developers.mercadolivre.com.br/pt_br/relatorios-de-faturamento)------------ ----[mla, mlm, mlc, mco, mlu, mpe]----[documentación](https://developers.mercadolibre[FAKER][URL][DOMAIN]/es_ar/reportes-de-facturacion)------------.| +| Reporte de Ventas de la Solución Split de Pagos do Mercado Pago | El Reporte de ventas de la solución split de pagos do Mercado Pago ofrece una visión completa de las transacciones de los vendedores vinculados, disponible para su descarga en los formatos _csv_ y _json_. Para obtener más información, consulte la [documentación](/developers/es/docs/checkout-pro/additional-content/reports/sales-report/introduction). | \ No newline at end of file diff --git a/guides/additional-content/reports/general-considerations/reconciliation-reports.pt.md b/guides/additional-content/reports/general-considerations/reconciliation-reports.pt.md index 0f86440159..911e131406 100644 --- a/guides/additional-content/reports/general-considerations/reconciliation-reports.pt.md +++ b/guides/additional-content/reports/general-considerations/reconciliation-reports.pt.md @@ -4,7 +4,7 @@ Os relatórios do Mercado Pago fornecem informações financeiras para acompanha > NOTE > -> O relatório Dinheiro Disponível foi desabilitado em 1º de março de 2022 +> O relatório Dinheiro disponível foi desabilitado em 1º de março de 2022 > > Você pode usar o [relatório de ----[mla]----Liquidações------------ ----[mlm, mlb, mlc, mco, mlu, mpe]----Liberações------------](/developers/pt/guides/additional-content/reports/released-money/introduction) para fazer a reconciliação das transações que afetem o saldo disponível na sua conta, incluindo seus saques bancários. @@ -15,5 +15,5 @@ Confira a tabela abaixo para mais detalhes sobre os tipos de relatório disponí | Relatório Liberações | Informa a composição do saldo disponível na sua conta, com detalhes sobre os valores envolvidos em um determinado período. Leia a [documentação de Liberações](https://www.mercadopago.com.br/developers/pt/guides/additional-content/reports/released-money/introduction) para mais informações. | | Relatório Dinheiro em conta | Informa as transações/movimentações que afetaram seu saldo em conta. Para mais informações, leia a [documentação de Dinheiro em conta](https://www.mercadopago.com.br/developers/pt/guides/additional-content/reports/account-money/introduction). | | Relatório Dinheiro disponível | Apresenta a liquidez do seu negócio, detalhando o valor disponível em conta para uso. Para obter mais informações, leia a [documentação de Dinheiro disponível](https://www.mercadopago.com.br/developers/pt/guides/additional-content/reports/available-money/introduction).
**Este relatório não está mais disponível**. Utilize o [Relatório de Liberações](https://www.mercadopago.com.br/developers/pt/guides/additional-content/reports/released-money/introduction) para conciliar as transações que compõem o saldo disponível em sua conta, incluindo saques bancários. | -| Relatórios de faturamento | A **equipe de Marketplace do Mercado Livre** desenvolveu uma série de relatórios de faturamento, para disponibilizar os detalhes financeiros das transações realizadas no Mercado Pago a partir das vendas no Mercado Livre.

Os dados dos relatórios também contemplam informações financeiras de usuários que não realizam vendas pelo Mercado Livre, uma vez que os dados de faturamento são do Mercado Pago. Para mais informações, acesse a [documentação](https://developers.mercadolivre.com.br/pt_br/relatorios-de-faturamento#Resumen).| -| Relatório de vendas da solução split de pagamentos do Mercado Pago | O relatório de vendas da solução split de pagamentos do Mercado Pago oferece um panorama completo das transações de vendedores vinculados, disponível para download nos formatos csv e json. Para saber mais, leia a [documentação](https://www.mercadopago.com.br/developers/pt/docs/checkout-pro/additional-content/reports/sales-report/introduction). | \ No newline at end of file +| Relatórios de faturamento | A **equipe de Marketplace do Mercado Livre** desenvolveu uma série de relatórios de faturamento, para disponibilizar os detalhes financeiros das transações realizadas no Mercado Pago a partir das vendas no Mercado Livre.

Os dados dos relatórios também contemplam informações financeiras de usuários que não realizam vendas pelo Mercado Livre, uma vez que os dados de faturamento são do Mercado Pago. Para mais informações, acesse a ----[mlb]----[documentação](https://developers.mercadolivre.com.br/pt_br/relatorios-de-faturamento)------------ ----[mla, mlm, mlc, mco, mlu, mpe]----[documentação](https://developers.mercadolibre[FAKER][URL][DOMAIN]/es_ar/reportes-de-facturacion)------------.| +| Relatório de vendas da solução split de pagamentos do Mercado Pago | O relatório de vendas da solução split de pagamentos do Mercado Pago oferece um panorama completo das transações de vendedores vinculados, disponível para download nos formatos csv e json. Para saber mais, leia a [documentação](/developers/pt/docs/checkout-pro/additional-content/reports/sales-report/introduction). | \ No newline at end of file diff --git a/guides/additional-content/your-integrations/notifications.en.md b/guides/additional-content/your-integrations/notifications.en.md index ac29c5086e..424b3cb46f 100644 --- a/guides/additional-content/your-integrations/notifications.en.md +++ b/guides/additional-content/your-integrations/notifications.en.md @@ -18,5 +18,5 @@ There are **two types** of notifications available for configuration which ,once | Type | Description | | --- | --- | -| **Webhooks** | It uses HTTP REST, instantly notifies updates and enhances security in your integration through the **secret signature**, a validation method to ensure that received notifications were sent by Mercado Pago.
[Haz clic aquí](/developers/es/guides/additional-content/your-integrations/webhooks) para aprender cómo configurar y simular el envío de notificaciones Webhooks. | +| **Webhooks** | Utiliza HTTP REST e notifica instantáneamente las actualizaciones. [Haz clic aquí](/developers/es/guides/additional-content/your-integrations/webhooks) para aprender cómo configurar y simular el envío de notificaciones Webhooks. | | **IPN** | La notificación puede tardar unos minutos en enviarse. Para aprender a configurar las notificaciones IPN [haz clic aquí](/developers/es/guides/additional-content/your-integrations/ipn). | \ No newline at end of file diff --git a/guides/additional-content/your-integrations/notifications.pt.md b/guides/additional-content/your-integrations/notifications.pt.md index 265d42af51..32945df598 100644 --- a/guides/additional-content/your-integrations/notifications.pt.md +++ b/guides/additional-content/your-integrations/notifications.pt.md @@ -17,5 +17,5 @@ Existe **dois tipos** de notificações disponíveis para configuração, que um | Tipo | Descrição | | --- | --- | -| **Webhooks** | Utiliza HTTP REST, notifica instantâneamente as atualizações e traz mais segurança em sua integração por meio da **assinatura secreta**, um método de validação para garantir que notificações recebidas foram enviadas pelo Mercado Pago.
[Clique aqui](/developers/pt/guides/additional-content/your-integrations/webhooks) para saber como configurar e simular o envio de notificações Webhooks. | +| **Webhooks** | Utiliza HTTP REST e notifica instantâneamente as atualizações. [Clique aqui](/developers/pt/guides/additional-content/your-integrations/webhooks) para saber como configurar e simular o envio de notificações Webhooks. | | **IPN** | A notificação pode demorar alguns instantes para ser enviada. Para saber como configurar notificações IPN [clique aqui](/developers/pt/guides/additional-content/your-integrations/ipn). | \ No newline at end of file diff --git a/guides/additional-content/your-integrations/webhooks.en.md b/guides/additional-content/your-integrations/webhooks.en.md index f93270fe9f..f41e5747f4 100644 --- a/guides/additional-content/your-integrations/webhooks.en.md +++ b/guides/additional-content/your-integrations/webhooks.en.md @@ -12,7 +12,7 @@ In this documentation, we will explain the necessary settings to receive message ## Configuration via Dashboard -Below, we will explain how to: specify the URLs that will be notified, configure the events from which notifications will be received, validate that the notifications you receive are sent by Mercado Pago and simulate the receipt of various types of notifications. +Below, we will explain how to specify the URLs that will be notified, configure the events from which notifications will be received and simulate the receipt of various types of notifications. ![webhooks](/images/dashboard/webhooks-es.png) @@ -39,30 +39,6 @@ Below, we will explain how to: specify the URLs that will be notified, configure | `delivery_cancellation` | `case_created`| Shipment cancellation request | | `topic_claims_integration_wh` | `updated`| Claims made by sales | -5. Finally, click **Save** to generate a secret signature for the application. The signature is a validation method to ensure that received notifications were sent by Mercado Pago. - -> WARNING -> -> Important -> -> Mercado Pago will always send this signature in Webhook notifications. Always verify this authenticity information to prevent fraud.

->

-> The generated signature has no expiration date, and while not mandatory, we recommend periodically renewing the **secret signature**. To do this, simply click the reset button next to the signature. - -### Validate notification origin - -1. After configuring the URLs and Events, **reveal the generated secret signature**. -2. Then, use the secret signature to validate the `x-signature-id` header. The value received in the header must match the key obtained in the previous step. In the example shown below, the value `59f768b5fcd30f47764052992e42b0f8812d02ffa34ca9f8d9947f2dcb7027f1` should match the generated secret key. - -```header -... -accept-encoding * -content-type application/json -accept */* -x-signature-id 59f768b5fcd30f47764052992e42b0f8812d02ffa34ca9f8d9947f2dcb7027f1 -... -``` - ### Simulate notification receipt 1. After configuring the URLs and Events, click **Simulate** to experiment and test if the indicated URL is receiving notifications correctly. @@ -394,8 +370,7 @@ Also, specifically in fraud alerts, you must not deliver the order and you will In the notification, you will receive a `JSON` with the following information containing the payment id to cancel. -[[[ -```Json +```json "description": ".....", @@ -404,8 +379,6 @@ In the notification, you will receive a `JSON` with the following information co ``` -]]] - > NOTE > diff --git a/guides/additional-content/your-integrations/webhooks.es.md b/guides/additional-content/your-integrations/webhooks.es.md index 61dd0503e5..f3544ea229 100644 --- a/guides/additional-content/your-integrations/webhooks.es.md +++ b/guides/additional-content/your-integrations/webhooks.es.md @@ -10,7 +10,7 @@ En esta documentación, explicaremos las configuraciones necesarias para recibir ## Configuración a través del Panel del desarrollador -A continuación explicaremos cómo: indicar las URL que serán notificadas, configurar los eventos de los cuales se recibirá la notificación, validar que las notificaciones que recibes son enviadas por Mercado Pago y simular la recepción de diversos tipos de notificaciones. +A continuación explicaremos cómo indicar las URL que serán notificadas, configurar los eventos de los cuales se recibirá la notificación y simular la recepción de diversos tipos de notificaciones. ![webhooks](/images/dashboard/webhooks-es.png) @@ -37,29 +37,7 @@ A continuación explicaremos cómo: indicar las URL que serán notificadas, conf | `delivery_cancellation` | `case_created`| Solicitud de cancelación de envío | | `topic_claims_integration_wh` | `updated`| Reclamos hechos por las ventas | -5. Por último, haz clic en **Guardar** para generar una clave secreta para la aplicación. La clave es un método de validación para asegurar que las notificaciones recibidas fueron enviadas por Mercado Pago. - -> WARNING -> -> Importante -> -> Mercado Pago siempre enviará esta clave en las notificaciones Webhooks. Siempre verifica esta información de autenticidad para evitar fraudes.

->

-> La clave generada no tiene fecha de caducidad y, aunque no es obligatorio, recomendamos renovar periódicamente la **clave secreta**. Para hacerlo, simplemente haz clic en el botón de restablecimiento junto a la clave. - -### Validar origen de la notificación - -1. Después de configurar las URLs y los Eventos, **revela la clave secreta** generada. -2. A continuación, utiliza la clave secreta para validar el encabezado `x-signature-id`. El valor recibido en el encabezado debe coincidir con la clave obtenida en el paso previo. En el ejemplo que se muestra a continuación el valor `59f768b5fcd30f47764052992e42b0f8812d02ffa34ca9f8d9947f2dcb7027f1` debería coincidir con la clave secreta generada. - -```header -... -accept-encoding * -content-type application/json -accept */* -x-signature-id 59f768b5fcd30f47764052992e42b0f8812d02ffa34ca9f8d9947f2dcb7027f1 -... -``` +5. Por último y haz clic en **Guardar**. ### Simular la recepción de la notificación @@ -392,9 +370,7 @@ En el caso de las alertas de fraude, específicamente, no entregues el pedido, y En la notificación recibirás un `JSON` con la siguiente información que contiene el payment id para realizar la cancelación. - -[[[ -```Json +```json "description": ".....", @@ -403,7 +379,6 @@ En la notificación recibirás un `JSON` con la siguiente información que conti ``` -]]] > NOTE > @@ -411,5 +386,4 @@ En la notificación recibirás un `JSON` con la siguiente información que conti > > También puedes obtener más información sobre la orden utilizando la API [Obtener orden](/developers/es/reference/merchant_orders/_merchant_orders_id/get). - Con esta información podrás realizar las actualizaciones necesarias a tu plataforma, como actualizar un pago aprobado. \ No newline at end of file diff --git a/guides/additional-content/your-integrations/webhooks.pt.md b/guides/additional-content/your-integrations/webhooks.pt.md index fa84f672c4..ff7647f960 100644 --- a/guides/additional-content/your-integrations/webhooks.pt.md +++ b/guides/additional-content/your-integrations/webhooks.pt.md @@ -10,7 +10,7 @@ Nesta documentação, explicaremos as configurações necessárias para o recebi ## Configuração através do Painel do desenvolvedor -Abaixo explicaremos como: indicar as URLs que serão notificadas, configurar os eventos dos quais se receberá a notificação, simular o recebimento de diversos tipos de notificações e validar que as notificações que recebe são enviadas pelo Mercado Pago. +Abaixo explicaremos como indicar as URLs que serão notificadas, configurar os eventos dos quais se receberá a notificação e simular o recebimento de diversos tipos de notificações. ![webhooks](/images/dashboard/webhooks-pt.png) @@ -37,29 +37,7 @@ Abaixo explicaremos como: indicar as URLs que serão notificadas, configurar os | `delivery_cancellation` | `case_created`| Solicitação de cancelamento do envio | | `topic_claims_integration_wh` | `updated`| Reclamações feitas pelas vendas | -5. Por fim, clique em **Salvar** para gerar uma **assinatura secreta** para a aplicação. A assinatura é um método de validação para garantir que notificações recebidas foram enviadas pelo Mercado Pago. - -> WARNING -> -> Importante -> -> O Mercado Pago sempre enviará essa assinatura nas notificações Webhooks. Sempre confira essa informação de autenticidade para evitar fraudes.

->

-> A assinatura gerada não tem prazo de validade e, embora não seja obrigatório, recomendamos renovar periodicamente a **assinatura secreta**. Para isso, basta clicar no botão de redefinição ao lado da assinatura. - -### Validar origem da notificação - -1. Após configurar as URLs e os Eventos, **revele a assinatura secreta** gerada. -2. Em seguida, utilize a assinatura secreta para validar o *header* `x-signature-id`. O valor recebido no *header* deve coincidir com a chave obtida na etapa anterior. No exemplo mostrado abaixo, o valor `59f768b5fcd30f47764052992e42b0f8812d02ffa34ca9f8d9947f2dcb7027f1` deve coincidir com a chave secreta gerada. - -```header -... -accept-encoding * -content-type application/json -accept */* -x-signature-id 59f768b5fcd30f47764052992e42b0f8812d02ffa34ca9f8d9947f2dcb7027f1 -... -``` +5. Por fim, clique em **Salvar**. ### Simular o recebimento da notificação @@ -312,7 +290,6 @@ curl -X POST \ >
> No caso dos eventos de `delivery` e `topic_claims_integration_wh`, também teremos alguns atributos diferentes na resposta. Veja na tabela abaixo quais são essas particularidades. - ```json { "id": 12345, @@ -327,6 +304,7 @@ curl -X POST \ } } ``` + Isso indica que foi criado o pagamento **999999999** para o usuário **44444** em modo de produção com a versão V1 da API e que esse evento ocorreu na data **2016-03-25T10:04:58.396-04:00**. | Atributo | Descrição | @@ -398,8 +376,7 @@ Além disso, especificamente em alertas de fraude, o pedido não deve ser entreg Na notificação, você receberá um `JSON` com as seguintes informações contendo o id de pagamento para efetuar o cancelamento. -[[[ -```Json +```json "description": ".....", @@ -408,8 +385,6 @@ Na notificação, você receberá um `JSON` com as seguintes informações conte ``` -]]] - > NOTE > @@ -417,5 +392,4 @@ Na notificação, você receberá um `JSON` com as seguintes informações conte > > É possível obter mais detalhes sobre o pedido utilizando a API [Obter pedido](/developers/pt/reference/merchant_orders/_merchant_orders_id/get). - Com essas informações, você poderá realizar as atualizações necessárias na sua plataforma como, por exemplo, atualizar um pagamento aprovado. \ No newline at end of file diff --git a/guides/checkout-api-v2/cancel-reserve.en.md b/guides/checkout-api-v2/cancel-reserve.en.md index 1205a4dbf8..f409a431a2 100644 --- a/guides/checkout-api-v2/cancel-reserve.en.md +++ b/guides/checkout-api-v2/cancel-reserve.en.md @@ -15,7 +15,7 @@ To cancel a reserve, use one of our available codes below. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->cancel($payment_id, $request_options); diff --git a/guides/checkout-api-v2/cancel-reserve.es.md b/guides/checkout-api-v2/cancel-reserve.es.md index 462af6e284..53bccf0c25 100644 --- a/guides/checkout-api-v2/cancel-reserve.es.md +++ b/guides/checkout-api-v2/cancel-reserve.es.md @@ -15,7 +15,7 @@ Para cancelar una reserva, utiliza uno de nuestros códigos disponibles a contin MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->cancel($payment_id, $request_options); diff --git a/guides/checkout-api-v2/cancel-reserve.pt.md b/guides/checkout-api-v2/cancel-reserve.pt.md index 2343206656..32130d2a9e 100644 --- a/guides/checkout-api-v2/cancel-reserve.pt.md +++ b/guides/checkout-api-v2/cancel-reserve.pt.md @@ -15,7 +15,7 @@ Para cancelar uma reserva utilize um dos códigos disponíveis abaixo. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->cancel($payment_id, $request_options); diff --git a/guides/checkout-api-v2/capture-authorized-payment.en.md b/guides/checkout-api-v2/capture-authorized-payment.en.md index 651199215c..9a29e49ea2 100644 --- a/guides/checkout-api-v2/capture-authorized-payment.en.md +++ b/guides/checkout-api-v2/capture-authorized-payment.en.md @@ -22,7 +22,7 @@ To capture the total amount of a reservation, send the value to be captured to t MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->capture($payment_id, $request_options); diff --git a/guides/checkout-api-v2/capture-authorized-payment.es.md b/guides/checkout-api-v2/capture-authorized-payment.es.md index 31a2164798..b30d0ac11d 100644 --- a/guides/checkout-api-v2/capture-authorized-payment.es.md +++ b/guides/checkout-api-v2/capture-authorized-payment.es.md @@ -22,7 +22,7 @@ Para capturar el monto total de una reserva, envía el valor a capturar al pará MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->capture($payment_id, $request_options); diff --git a/guides/checkout-api-v2/capture-authorized-payment.pt.md b/guides/checkout-api-v2/capture-authorized-payment.pt.md index 83e6f0d9a0..ffa2ef9074 100644 --- a/guides/checkout-api-v2/capture-authorized-payment.pt.md +++ b/guides/checkout-api-v2/capture-authorized-payment.pt.md @@ -22,7 +22,7 @@ Para fazer a captura do valor total de uma reserva, envie o valor que deve ser c MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->capture($payment_id, $request_options); diff --git a/guides/checkout-api-v2/how-to-integrate-3ds.en.md b/guides/checkout-api-v2/how-to-integrate-3ds.en.md index 02f6b39b43..bf8571a56d 100644 --- a/guides/checkout-api-v2/how-to-integrate-3ds.en.md +++ b/guides/checkout-api-v2/how-to-integrate-3ds.en.md @@ -107,7 +107,7 @@ Payment payment = await client.CreateAsync(request); MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -393,7 +393,7 @@ curl -X POST \ MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/how-to-integrate-3ds.es.md b/guides/checkout-api-v2/how-to-integrate-3ds.es.md index 1d65eb39b9..ff8c51b35c 100644 --- a/guides/checkout-api-v2/how-to-integrate-3ds.es.md +++ b/guides/checkout-api-v2/how-to-integrate-3ds.es.md @@ -107,7 +107,7 @@ Payment payment = await client.CreateAsync(request); MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -394,7 +394,7 @@ curl -X POST \ MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/how-to-integrate-3ds.pt.md b/guides/checkout-api-v2/how-to-integrate-3ds.pt.md index 59754c803b..7d03a48e3e 100644 --- a/guides/checkout-api-v2/how-to-integrate-3ds.pt.md +++ b/guides/checkout-api-v2/how-to-integrate-3ds.pt.md @@ -107,7 +107,7 @@ Payment payment = await client.CreateAsync(request); MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -393,7 +393,7 @@ curl -X POST \ MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/integrate-pix.en.md b/guides/checkout-api-v2/integrate-pix.en.md index 6821ba8a7d..73baff9a0e 100644 --- a/guides/checkout-api-v2/integrate-pix.en.md +++ b/guides/checkout-api-v2/integrate-pix.en.md @@ -156,7 +156,7 @@ To configure payment with Pix, send a **POST** to the endpoint [/v1/payments](/d MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); diff --git a/guides/checkout-api-v2/integrate-pix.es.md b/guides/checkout-api-v2/integrate-pix.es.md index de929e4b93..bbb20f93ec 100644 --- a/guides/checkout-api-v2/integrate-pix.es.md +++ b/guides/checkout-api-v2/integrate-pix.es.md @@ -158,7 +158,7 @@ Para configurar los pagos con Pix, envía un **POST** al endpoint [/v1/payments] MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); diff --git a/guides/checkout-api-v2/integrate-pix.pt.md b/guides/checkout-api-v2/integrate-pix.pt.md index b3ada22705..6415b43d3d 100644 --- a/guides/checkout-api-v2/integrate-pix.pt.md +++ b/guides/checkout-api-v2/integrate-pix.pt.md @@ -163,7 +163,7 @@ Para configurar pagamento com Pix, envie um POST ao endpoint [/v1/payments](/dev MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); diff --git a/guides/checkout-api-v2/integration-via-cardform.en.md b/guides/checkout-api-v2/integration-via-cardform.en.md index 12f5af1a95..f079877211 100644 --- a/guides/checkout-api-v2/integration-via-cardform.en.md +++ b/guides/checkout-api-v2/integration-via-cardform.en.md @@ -391,7 +391,7 @@ With all the information collected in the backend, send a POST with the necessar MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/integration-via-cardform.es.md b/guides/checkout-api-v2/integration-via-cardform.es.md index 37643fdb4b..d88799902d 100644 --- a/guides/checkout-api-v2/integration-via-cardform.es.md +++ b/guides/checkout-api-v2/integration-via-cardform.es.md @@ -399,7 +399,7 @@ Con toda la información recopilada en el backend, envía un **POST** con los at MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/integration-via-cardform.pt.md b/guides/checkout-api-v2/integration-via-cardform.pt.md index c1d02b30c8..c36eac7e37 100644 --- a/guides/checkout-api-v2/integration-via-cardform.pt.md +++ b/guides/checkout-api-v2/integration-via-cardform.pt.md @@ -399,7 +399,7 @@ Com todas as informações coletadas no backend, envie um POST com os atributos MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/make-value-reserve.en.md b/guides/checkout-api-v2/make-value-reserve.en.md index f0706963f7..5e22800c09 100644 --- a/guides/checkout-api-v2/make-value-reserve.en.md +++ b/guides/checkout-api-v2/make-value-reserve.en.md @@ -13,7 +13,7 @@ To carry out a reserve authorization, send a **POST** with all the necessary att MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/make-value-reserve.es.md b/guides/checkout-api-v2/make-value-reserve.es.md index 41c5c59259..57a74ef61c 100644 --- a/guides/checkout-api-v2/make-value-reserve.es.md +++ b/guides/checkout-api-v2/make-value-reserve.es.md @@ -13,7 +13,7 @@ Para realizar una autorización de reserva, envíe un **POST** con todos los atr MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/make-value-reserve.pt.md b/guides/checkout-api-v2/make-value-reserve.pt.md index 1f3782fc92..2790369028 100644 --- a/guides/checkout-api-v2/make-value-reserve.pt.md +++ b/guides/checkout-api-v2/make-value-reserve.pt.md @@ -13,7 +13,7 @@ Para realizar uma autorização de reserva de valores, envie um **POST** com com MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/other-payment-methods.en.md b/guides/checkout-api-v2/other-payment-methods.en.md index 8bfde9d10c..d118d61f90 100644 --- a/guides/checkout-api-v2/other-payment-methods.en.md +++ b/guides/checkout-api-v2/other-payment-methods.en.md @@ -311,7 +311,7 @@ To configure payments with **Boleto Bancário** or **Pagamento em lotérica**, s use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -638,7 +638,7 @@ To configure payments with **Rapipago** and/or **Pago Fácil**, send a **POST** use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -882,7 +882,7 @@ To configure payments with **OXXO**, **Paycash**, **Citibanamex**, **Santander** use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1081,7 +1081,7 @@ To configure payments with **PagoEfectivo**, send a **POST** with the required p use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1267,7 +1267,7 @@ To configure payments with **Efecty**, send a **POST** with the appropriate para use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1513,7 +1513,7 @@ To configure payments with **Abitab** and/or **Redpagos**, send a **POST** with use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/other-payment-methods.es.md b/guides/checkout-api-v2/other-payment-methods.es.md index 16b72a20fb..df3c4fbca7 100644 --- a/guides/checkout-api-v2/other-payment-methods.es.md +++ b/guides/checkout-api-v2/other-payment-methods.es.md @@ -314,7 +314,7 @@ Para configurar pagos con **boleto bancario** o **pago en agencia de lotería**, use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -644,7 +644,7 @@ Para configurar pagos con **Rapipago** y/o **Pago Fácil**, envía un **POST** c use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -883,7 +883,7 @@ Para configurar pagos con **OXXO**, **Paycash**, **Citibanamex**, **Santander* use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1082,7 +1082,7 @@ Para configurar pagos con **PagoEfectivo**, envía un **POST** con los parámetr use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1270,7 +1270,7 @@ Para configurar pagos con **Efecty**, envía un **POST** con los parámetros req use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1512,7 +1512,7 @@ Para configurar pagos con **Abitab** y/o **Redpagos**, envía un POST con los si use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/other-payment-methods.pt.md b/guides/checkout-api-v2/other-payment-methods.pt.md index f9623bcd72..e85bd454a0 100644 --- a/guides/checkout-api-v2/other-payment-methods.pt.md +++ b/guides/checkout-api-v2/other-payment-methods.pt.md @@ -313,7 +313,7 @@ Para configurar pagamentos com **boleto bancário** ou **pagamento em lotérica* use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -640,7 +640,7 @@ Para configurar pagamentos com **Rapipago** e/ou **Pago Fácil**, envie um **POS use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -882,7 +882,7 @@ Para configurar pagamentos com **OXXO**, **Paycash**, **Citibanamex**, **Sant use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1080,7 +1080,7 @@ Para configurar pagamentos com **PagoEfectivo**, envie um **POST** com os parâm use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1266,7 +1266,7 @@ Para configurar pagamentos com **Efecty**, envie um **POST** com os devidos par use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ @@ -1511,7 +1511,7 @@ Para configurar pagamentos com **Abitab** e/ou **Redpagos**, envie um POST com o use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/receive-payments-with-saved-cards.en.md b/guides/checkout-api-v2/receive-payments-with-saved-cards.en.md index 0be98adcc9..0bdaee7060 100644 --- a/guides/checkout-api-v2/receive-payments-with-saved-cards.en.md +++ b/guides/checkout-api-v2/receive-payments-with-saved-cards.en.md @@ -179,7 +179,7 @@ Once the token is obtained, it is necessary to create the payment with the corre $cards = $client->list("customer_id"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/receive-payments-with-saved-cards.es.md b/guides/checkout-api-v2/receive-payments-with-saved-cards.es.md index 5bee589a81..7c29a06b9f 100644 --- a/guides/checkout-api-v2/receive-payments-with-saved-cards.es.md +++ b/guides/checkout-api-v2/receive-payments-with-saved-cards.es.md @@ -166,7 +166,7 @@ Después de obtener el token, es necesario crear el pago con el importe correspo $cards = $client->list("customer_id"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-api-v2/receive-payments-with-saved-cards.pt.md b/guides/checkout-api-v2/receive-payments-with-saved-cards.pt.md index fd6ff78936..d3549957dc 100644 --- a/guides/checkout-api-v2/receive-payments-with-saved-cards.pt.md +++ b/guides/checkout-api-v2/receive-payments-with-saved-cards.pt.md @@ -184,7 +184,7 @@ Uma vez obtido o token, é preciso criar o pagamento com o valor correspondente. $cards = $client->list("customer_id"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/cancel-reserve.en.md b/guides/checkout-bricks/cancel-reserve.en.md index 1b17e6b431..2831ea5ee8 100644 --- a/guides/checkout-bricks/cancel-reserve.en.md +++ b/guides/checkout-bricks/cancel-reserve.en.md @@ -12,7 +12,7 @@ To cancel a reserve, use one of our available codes below. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->cancel($payment_id, $request_options); diff --git a/guides/checkout-bricks/cancel-reserve.es.md b/guides/checkout-bricks/cancel-reserve.es.md index 43cb131c2e..fa170f3410 100644 --- a/guides/checkout-bricks/cancel-reserve.es.md +++ b/guides/checkout-bricks/cancel-reserve.es.md @@ -12,7 +12,7 @@ Para cancelar una reserva, utiliza uno de nuestros códigos disponibles a contin MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->cancel($payment_id, $request_options); diff --git a/guides/checkout-bricks/cancel-reserve.pt.md b/guides/checkout-bricks/cancel-reserve.pt.md index 719c69aa87..3333868854 100644 --- a/guides/checkout-bricks/cancel-reserve.pt.md +++ b/guides/checkout-bricks/cancel-reserve.pt.md @@ -12,7 +12,7 @@ Para cancelar uma reserva utilize um dos códigos disponíveis abaixo. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->cancel($payment_id, $request_options); diff --git a/guides/checkout-bricks/capture-authorized-payment.en.md b/guides/checkout-bricks/capture-authorized-payment.en.md index 11fb6f371c..80713a54ef 100644 --- a/guides/checkout-bricks/capture-authorized-payment.en.md +++ b/guides/checkout-bricks/capture-authorized-payment.en.md @@ -20,7 +20,7 @@ To capture the total amount of a reservation, send the value to be captured to t MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->capture($payment_id, $request_options); diff --git a/guides/checkout-bricks/capture-authorized-payment.es.md b/guides/checkout-bricks/capture-authorized-payment.es.md index 9b62880e24..8aed98cb0a 100644 --- a/guides/checkout-bricks/capture-authorized-payment.es.md +++ b/guides/checkout-bricks/capture-authorized-payment.es.md @@ -20,7 +20,7 @@ Para capturar el monto total de una reserva, envía el valor a capturar al pará MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->capture($payment_id, $request_options); diff --git a/guides/checkout-bricks/capture-authorized-payment.pt.md b/guides/checkout-bricks/capture-authorized-payment.pt.md index 8776d669e1..71cb229e73 100644 --- a/guides/checkout-bricks/capture-authorized-payment.pt.md +++ b/guides/checkout-bricks/capture-authorized-payment.pt.md @@ -20,7 +20,7 @@ Para fazer a captura do valor total de uma reserva, envie o valor que deve ser c MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->capture($payment_id, $request_options); diff --git a/guides/checkout-bricks/card-payment-brick/payment-submission.en.md b/guides/checkout-bricks/card-payment-brick/payment-submission.en.md index ec3288cfe1..76593b6055 100644 --- a/guides/checkout-bricks/card-payment-brick/payment-submission.en.md +++ b/guides/checkout-bricks/card-payment-brick/payment-submission.en.md @@ -30,7 +30,7 @@ You can find payment status in _status_ value. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/card-payment-brick/payment-submission.es.md b/guides/checkout-bricks/card-payment-brick/payment-submission.es.md index 96bb3bc0fa..757317692d 100644 --- a/guides/checkout-bricks/card-payment-brick/payment-submission.es.md +++ b/guides/checkout-bricks/card-payment-brick/payment-submission.es.md @@ -30,7 +30,7 @@ Puedes encontrar el estado del pago en el valor _status_. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/card-payment-brick/payment-submission.pt.md b/guides/checkout-bricks/card-payment-brick/payment-submission.pt.md index 885689e55a..bf0ea37805 100644 --- a/guides/checkout-bricks/card-payment-brick/payment-submission.pt.md +++ b/guides/checkout-bricks/card-payment-brick/payment-submission.pt.md @@ -30,7 +30,7 @@ Encontre o estado do pagamento no campo _status_. MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/make-value-reserve.en.md b/guides/checkout-bricks/make-value-reserve.en.md index b6dc2834ab..5e0d259335 100644 --- a/guides/checkout-bricks/make-value-reserve.en.md +++ b/guides/checkout-bricks/make-value-reserve.en.md @@ -13,7 +13,7 @@ To carry out a reserve authorization, send a **POST** with all the necessary att MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/make-value-reserve.es.md b/guides/checkout-bricks/make-value-reserve.es.md index f1a9022c83..c228c998a2 100644 --- a/guides/checkout-bricks/make-value-reserve.es.md +++ b/guides/checkout-bricks/make-value-reserve.es.md @@ -13,7 +13,7 @@ Para realizar una autorización de reserva, envíe un **POST** con todos los atr MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/make-value-reserve.pt.md b/guides/checkout-bricks/make-value-reserve.pt.md index d23b2929b0..40e0755ada 100644 --- a/guides/checkout-bricks/make-value-reserve.pt.md +++ b/guides/checkout-bricks/make-value-reserve.pt.md @@ -13,7 +13,7 @@ Para realizar uma autorização de reserva de valores, envie um **POST** com com MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-cards.en.md b/guides/checkout-bricks/payment-brick/payment-submission-cards.en.md index 16cb3ee6ea..b9b136dd68 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-cards.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-cards.en.md @@ -22,7 +22,7 @@ With all the information collected in the backend, send a POST with the necessar MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-cards.es.md b/guides/checkout-bricks/payment-brick/payment-submission-cards.es.md index 6ad9883881..f4f8383f4c 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-cards.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-cards.es.md @@ -22,7 +22,7 @@ Con toda la información recopilada en el backend, envía un **POST** con los at MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-cards.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-cards.pt.md index 28bf880f33..f49cdbbd21 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-cards.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-cards.pt.md @@ -22,7 +22,7 @@ Com todas as informações coletadas no backend, envie um POST com os atributos MercadoPagoConfig::setAccessToken("YOUR_ACCESS_TOKEN"); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.en.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.en.md index c541f57bd1..5ac40b84fe 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.en.md @@ -24,7 +24,7 @@ To configure payments with **Efecty**, send a **POST** with the following parame use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.es.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.es.md index d4e5cd33c5..e81514d852 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.es.md @@ -24,7 +24,7 @@ Para configurar pagos con **Efecty**, envía un POST con los siguientes parámet use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.pt.md index 0c5f01948f..8cf9a8ec39 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mco.pt.md @@ -24,7 +24,7 @@ Para configurar pagamentos com **Efecty**, envie um POST com os seguintes parâm use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.en.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.en.md index bb2be87f82..db072d20ec 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.en.md @@ -25,7 +25,7 @@ To configure payments with **Rapipago** or **Pago Fácil**, send a **POST** with use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.es.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.es.md index 7acba26e95..a99b05653e 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.es.md @@ -25,7 +25,7 @@ Para configurar pagos con **Rapipago** o **Pago Fácil**, envía un POST con los use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.pt.md index 0e196d3490..21423b7805 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mla.pt.md @@ -25,7 +25,7 @@ Para configurar pagamentos com **Rapipago** ou **Pago Fácil**, envie um POST co use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.en.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.en.md index 74d8dc918e..8060af5459 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.en.md @@ -25,7 +25,7 @@ To configure payments with **boleto bancário** or **payment in lottery**, send use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.es.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.es.md index 1e429349a0..802e96a816 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.es.md @@ -25,7 +25,7 @@ Para configurar pagos con **boleto bancario** o pago en **agencia de lotería**, use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.pt.md index 18e850ac20..1fed5b7501 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlb.pt.md @@ -25,7 +25,7 @@ Para configurar pagamentos com **boleto bancário** ou **pagamento em lotérica* use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.en.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.en.md index b1cf330f83..5af134fa7c 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.en.md @@ -41,7 +41,7 @@ When creating a payment, in addition to sending the `payment_method_id` paramete use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.es.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.es.md index 4fd14ac999..83dbeae226 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.es.md @@ -41,7 +41,7 @@ Al crear un pago, además de enviar el parámetro `payment_method_id`, que utili use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.pt.md index e24da07aba..1dd54d396a 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlm.pt.md @@ -41,7 +41,7 @@ Na criação de um pagamento, além de enviar o parâmetro `payment_method_id`, use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.en.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.en.md index 141dc4f381..3d43bbfd62 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.en.md @@ -25,7 +25,7 @@ To configure payments with **Abitab** or **Redpagos**, send a **POST** with the use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.es.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.es.md index 175b7d454a..86b8defe15 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.es.md @@ -25,7 +25,7 @@ Para configurar pagos con **Abitab** o **Redpagos**, envía un POST con los sigu use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.pt.md index 44de47f853..35047d0651 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mlu.pt.md @@ -25,7 +25,7 @@ Para configurar pagamentos com **Abitab** ou **Redpagos**, envie um POST com os use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.en.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.en.md index 34c3a37315..e1dbb4186a 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.en.md @@ -24,7 +24,7 @@ To configure payments with **PagoEfectivo**, send a **POST** with the following use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.es.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.es.md index 3f0ce3ba95..410fe91cbe 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.es.md @@ -24,7 +24,7 @@ Para configurar pagos con **PagoEfectivo**, envía un POST con los siguientes pa use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.pt.md index 5810e3f3fc..a4433b8fd6 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-other-payment-methods-mpe.pt.md @@ -24,7 +24,7 @@ Para configurar pagamentos com **PagoEfectivo**, envie um POST com os seguintes use MercadoPago\Client\Payment\PaymentClient; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-pix.en.md b/guides/checkout-bricks/payment-brick/payment-submission-pix.en.md index cff0cba70e..6bbba9f0e1 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-pix.en.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-pix.en.md @@ -23,7 +23,7 @@ To configure payment with Pix, send a **POST** to the endpoint [/v1/payments](/d MercadoPagoConfig::setAccessToken(""); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-pix.es.md b/guides/checkout-bricks/payment-brick/payment-submission-pix.es.md index ad19eac8cc..8bb6665a98 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-pix.es.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-pix.es.md @@ -23,7 +23,7 @@ Para configurar los pagos con Pix, envía un **POST** al endpoint [/v1/payments] MercadoPagoConfig::setAccessToken(""); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/checkout-bricks/payment-brick/payment-submission-pix.pt.md b/guides/checkout-bricks/payment-brick/payment-submission-pix.pt.md index 4f251e1906..7a8e67f538 100644 --- a/guides/checkout-bricks/payment-brick/payment-submission-pix.pt.md +++ b/guides/checkout-bricks/payment-brick/payment-submission-pix.pt.md @@ -23,7 +23,7 @@ Para configurar pagamento com Pix, envie um POST ao endpoint [/v1/payments](/dev MercadoPagoConfig::setAccessToken(""); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->create([ diff --git a/guides/sdks-v2/official/php/cancellation.en.md b/guides/sdks-v2/official/php/cancellation.en.md index cef68ed20e..76f0b1182b 100644 --- a/guides/sdks-v2/official/php/cancellation.en.md +++ b/guides/sdks-v2/official/php/cancellation.en.md @@ -6,7 +6,7 @@ It is possible to cancel a specific purchase from the payment ID using the SDK b ```php setCustomHeaders(["X-Idempotency-Key: "]); $client->cancel('123456789', $request_options); diff --git a/guides/sdks-v2/official/php/cancellation.es.md b/guides/sdks-v2/official/php/cancellation.es.md index c309006384..fd65894cc1 100644 --- a/guides/sdks-v2/official/php/cancellation.es.md +++ b/guides/sdks-v2/official/php/cancellation.es.md @@ -6,7 +6,7 @@ Es posible cancelar una compra específica desde el ID de pago utilizando el SDK ```php setCustomHeaders(["X-Idempotency-Key: "]); $client->cancel('123456789', $request_options); diff --git a/guides/sdks-v2/official/php/cancellation.pt.md b/guides/sdks-v2/official/php/cancellation.pt.md index 1c3a5a4703..0f4d73af7b 100644 --- a/guides/sdks-v2/official/php/cancellation.pt.md +++ b/guides/sdks-v2/official/php/cancellation.pt.md @@ -6,7 +6,7 @@ ```php setCustomHeaders(["X-Idempotency-Key: "]); $client->cancel('123456789', $request_options); diff --git a/guides/sdks-v2/official/php/create-payments.en.md b/guides/sdks-v2/official/php/create-payments.en.md index 305e3f6a0d..4009d94e76 100644 --- a/guides/sdks-v2/official/php/create-payments.en.md +++ b/guides/sdks-v2/official/php/create-payments.en.md @@ -21,7 +21,7 @@ You can create and add payment information using the SDK below. For details on r ]; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->create($createRequest, $request_options); @@ -42,7 +42,7 @@ You can search for payments made in the last twelve months from the search date "external_reference" => "ID_REF" ]); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->search($searchRequest, $request_options); @@ -71,7 +71,7 @@ It is possible to change the data of a certain payment by sending the parameters ```php setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->capture(123456789, 100, $request_options); diff --git a/guides/sdks-v2/official/php/create-payments.es.md b/guides/sdks-v2/official/php/create-payments.es.md index 44c9a408c9..6597699bdb 100644 --- a/guides/sdks-v2/official/php/create-payments.es.md +++ b/guides/sdks-v2/official/php/create-payments.es.md @@ -21,7 +21,7 @@ Es posible crear y agregar información de pago utilizando el SDK a continuació ]; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->create($createRequest, $request_options); @@ -42,7 +42,7 @@ Puede buscar los pagos realizados en los últimos doce meses a partir de la fech "external_reference" => "ID_REF" ]); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->search($searchRequest, $request_options); @@ -71,7 +71,7 @@ Es posible cambiar los datos de un determinado pago enviando los parámetros con ```php setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->capture(123456789, 100, $request_options); diff --git a/guides/sdks-v2/official/php/create-payments.pt.md b/guides/sdks-v2/official/php/create-payments.pt.md index 7c632b1948..6d5aca5f27 100644 --- a/guides/sdks-v2/official/php/create-payments.pt.md +++ b/guides/sdks-v2/official/php/create-payments.pt.md @@ -21,7 +21,7 @@ ]; $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->create($createRequest, $request_options); @@ -42,7 +42,7 @@ "external_reference" => "ID_REF" ]); $client = new PaymentClient(); - $request_options = new MPRequestOptions(); + $request_options = new RequestOptions(); $request_options->setCustomHeaders(["X-Idempotency-Key: "]); $client->search($searchRequest, $request_options); @@ -71,7 +71,7 @@ ```php setCustomHeaders(["X-Idempotency-Key: "]); $payment = $client->capture(123456789, 100, $request_options); diff --git a/reference/api-json/preferences.json b/reference/api-json/preferences.json index 6d222e16c7..6079aae28a 100644 --- a/reference/api-json/preferences.json +++ b/reference/api-json/preferences.json @@ -4420,16 +4420,16 @@ "title": "approved", "description": { "en": "The redirection takes place only for approved payments.", - "es": "The redirection takes place only for approved payments.", - "pt": "The redirection takes place only for approved payments." + "es": "El redireccionamiento solo ocurre para pagos aprobados.", + "pt": "O redirecionamento ocorre apenas para pagamentos aprovados." } }, { "title": "all", "description": { - "en": "The redirection takes place only for approved payments, forward compatibility only if we change the default behavior", - "es": "The redirection takes place only for approved payments, forward compatibility only if we change the default behavior", - "pt": "The redirection takes place only for approved payments, forward compatibility only if we change the default behavior" + "en": "The redirection takes place only for approved payments, forward compatibility only if we change the default behavior.", + "es": "El redireccionamiento se realiza únicamente para pagos aprobados, compatibilidad con versiones posteriores solo si cambiamos el comportamiento predeterminado.", + "pt": "O redirecionamento ocorre apenas para pagamentos aprovados, compatibilidade futura somente se alterarmos o comportamento padrão." } } ] diff --git a/reference/api-json/subscriptions.json b/reference/api-json/subscriptions.json index 65c713bb51..7d6dacb874 100644 --- a/reference/api-json/subscriptions.json +++ b/reference/api-json/subscriptions.json @@ -638,1343 +638,823 @@ "es": "Bad-Request", "pt": "Bad-Request" } - }, + } + ] + } + } + } + } + } + }, + "401": { + "description": { + "en": "Error", + "pt": "Erro", + "es": "Error" + }, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errorKey": { + "type": "string", + "enum": [ { - "title": "400", + "title": "401", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Unauthorized", + "es": "Unauthorized", + "pt": "Unauthorized" } - }, + } + ] + } + } + } + } + } + }, + "403": { + "description": { + "en": "Error", + "pt": "Erro", + "es": "Error" + }, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errorKey": { + "type": "string", + "enum": [ { - "title": "400", + "title": "403", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Forbidden", + "es": "Forbidden", + "pt": "Forbidden" } - }, + } + ] + } + } + } + } + } + }, + "500": { + "description": { + "en": "Error", + "pt": "Erro", + "es": "Error" + }, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errorKey": { + "type": "string", + "enum": [ { - "title": "400", + "title": "500", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Error", + "es": "Error", + "pt": "Error" } + } + ] + } + } + } + } + } + } + }, + "title": { + "en": "Create a subscription", + "pt": "Criar assinatura", + "es": "Crear suscripción" + } + } + }, + "/preapproval_plan": { + "post": { + "tags": [ + "subscriptions" + ], + "description": { + "en": "A plan is a template to create subscriptions thats tell how often and how much to charge your customers. Plans can be created with free trials, biiling cycles and more. The subscriptions created from a plan are related to it and allows synchronizing modifications such as reason or amount", + "pt": "Um plano é um template para criar assinaturas que informa a frequência e valor que deverão ser cobrados dos seus clientes. Planos podem ser criados com testes grátis, ciclos de cobrança, entre outros. As assinaturas criadas a partir de um plano são relacioadas a ele e permitem sincronizar informações como reason e amount", + "es": "Un plan es un template para crear suscripciones que indican con qué frecuencia y cuánto cobrar a tus clientes. Se pueden crear planes con pruebas gratuitas, ciclos de facturación y más. Las suscripciones creadas a partir de un plan están relacionadas con el mismo y permiten sincronizar modificaciones como reason o amount" + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "reason": { + "required": true, + "type": "string", + "description": { + "en": "It is a short description that the subscriber will see during the checkout process and in the notifications.", + "pt": "É uma breve descrição que o assinante verá durante o processo de checkout e nas notificações.", + "es": "Es una breve descripción que el suscriptor verá durante el checkout y en las notificaciones." + }, + "example": "Yoga classes" + }, + "auto_recurring": { + "type": "object", + "description": { + "en": "Configuration data for recurrence.", + "pt": "Configuração da data para recorrência.", + "es": "Información de configuración para la recurrencia." + }, + "properties": { + "frequency": { + "required": true, + "type": "number", + "description": { + "en": "Indicates the frequency value. Together with frequency_type they define the invoice cycle that a subscription will have.", + "pt": "Indica o valor de frequência. Junto com frequency_type define o ciclo de cobrança que a assinaturá terá.", + "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "example": 1 + }, + "frequency_type": { + "required": true, + "type": "string", + "description": { + "en": "Indicates the type of frequency. Together with frequency they define the invoice cycle that a subscription will have.", + "pt": "Indica o tipo de frequência. Junto com frequency, definem o ciclo de cobrança que a assinatura terá.", + "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "example": "months", + "enum": [ + { + "title": "days", + "description": { + "en": "Indicate a frequency in units of days", + "es": "Indicate a frequency in units of days", + "pt": "Indicate a frequency in units of days" + } + }, + { + "title": "months", + "description": { + "en": "Indicate a frequency in units of months", + "es": "Indicate a frequency in units of months", + "pt": "Indicate a frequency in units of months" + } } + ] + }, + "repetitions": { + "type": "number", + "description": { + "en": "It is optional and is used to create a limited subscription. Indicates the number of times that we will repeat the recurrence cycle. If this param is not defined, subscription does not end until some of the parties cancel it.", + "pt": "É opcional e utilizado para criar uma assinatura limitada. Indica o número de itens que serão repetidos no ciclo de recorrência. Se este parâmetro não for definido, a assinatura não será finaliza até que uma das partes cancele.", + "es": "Es opcional y se utiliza para crear una suscripción limitada. Indica el número de veces que repetiremos el ciclo de recurrencia. Si no se define este param, la suscripción no finaliza hasta que alguna de las partes la cancela." }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "example": 12 + }, + "billing_day": { + "type": "number", + "description": { + "en": "Day of the month that the subscription will always be charged. It only accepts values between 1 and 28. This setting is only available for subscriptions with a plan associated.", + "pt": "Dia do mês que a assinatura será comprada. Apenas aceita valores entre 1 e 28. Esta configuração está disponível somente para assinaturas com plano associado.", + "es": "Día del mes en que se cobrará la suscripción. Solo acepta valores entre 1 y 28. Esta configuración solo está disponible para suscripciones con un plan asociado." }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "example": 10 + }, + "billing_day_proportional": { + "type": "boolean", + "description": { + "en": "Charge a proportional amount to the billing day at the time of registration.", + "pt": "Cobra um valor proporcional ao dia do faturamento no momento do cadastro.", + "es": "Cobra una suma proporcional al día de facturación en el momento del registro." }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "example": true, + "enum": [ + { + "title": "true", + "description": { + "en": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", + "es": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", + "pt": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis." + } + }, + { + "title": "false", + "description": { + "en": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", + "es": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", + "pt": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe." + } } + ] + }, + "free_trial": { + "type": "object", + "description": { + "en": "Free trial data.", + "pt": "Informação de teste grátis", + "es": "Información sobre prueba gratuita." }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - } - ] - } - } - } - } - } - }, - "401": { - "description": { - "en": "Error", - "pt": "Erro", - "es": "Error" - }, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errorKey": { - "type": "string", - "enum": [ - { - "title": "401", - "description": { - "en": "Unauthorized", - "es": "Unauthorized", - "pt": "Unauthorized" - } - }, - { - "title": "401", - "description": { - "en": "Unauthorized", - "es": "Unauthorized", - "pt": "Unauthorized" - } - }, - { - "title": "401", - "description": { - "en": "Unauthorized", - "es": "Unauthorized", - "pt": "Unauthorized" - } - }, - { - "title": "401", - "description": { - "en": "Unauthorized", - "es": "Unauthorized", - "pt": "Unauthorized" - } - } - ] - } - } - } - } - } - }, - "403": { - "description": { - "en": "Error", - "pt": "Erro", - "es": "Error" - }, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errorKey": { - "type": "string", - "enum": [ - { - "title": "403", - "description": { - "en": "Forbidden", - "es": "Forbidden", - "pt": "Forbidden" - } - }, - { - "title": "403", - "description": { - "en": "Forbidden", - "es": "Forbidden", - "pt": "Forbidden" - } - }, - { - "title": "403", - "description": { - "en": "Forbidden", - "es": "Forbidden", - "pt": "Forbidden" - } - } - ] - } - } - } - } - } - }, - "500": { - "description": { - "en": "Error", - "pt": "Erro", - "es": "Error" - }, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "errorKey": { - "type": "string", - "enum": [ - { - "title": "500", - "description": { - "en": "Error", - "es": "Error", - "pt": "Error" - } - } - ] - } - } - } - } - } - } - }, - "title": { - "en": "Create a subscription", - "pt": "Criar assinatura", - "es": "Crear suscripción" - } - } - }, - "/preapproval_plan": { - "post": { - "tags": [ - "subscriptions" - ], - "description": { - "en": "A plan is a template to create subscriptions thats tell how often and how much to charge your customers. Plans can be created with free trials, biiling cycles and more. The subscriptions created from a plan are related to it and allows synchronizing modifications such as reason or amount", - "pt": "Um plano é um template para criar assinaturas que informa a frequência e valor que deverão ser cobrados dos seus clientes. Planos podem ser criados com testes grátis, ciclos de cobrança, entre outros. As assinaturas criadas a partir de um plano são relacioadas a ele e permitem sincronizar informações como reason e amount", - "es": "Un plan es un template para crear suscripciones que indican con qué frecuencia y cuánto cobrar a tus clientes. Se pueden crear planes con pruebas gratuitas, ciclos de facturación y más. Las suscripciones creadas a partir de un plan están relacionadas con el mismo y permiten sincronizar modificaciones como reason o amount" - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "reason": { - "required": true, - "type": "string", - "description": { - "en": "It is a short description that the subscriber will see during the checkout process and in the notifications.", - "pt": "É uma breve descrição que o assinante verá durante o processo de checkout e nas notificações.", - "es": "Es una breve descripción que el suscriptor verá durante el checkout y en las notificaciones." - }, - "example": "Yoga classes" - }, - "auto_recurring": { - "type": "object", - "description": { - "en": "Configuration data for recurrence.", - "pt": "Configuração da data para recorrência.", - "es": "Información de configuración para la recurrencia." - }, - "properties": { - "frequency": { - "required": true, - "type": "number", - "description": { - "en": "Indicates the frequency value. Together with frequency_type they define the invoice cycle that a subscription will have.", - "pt": "Indica o valor de frequência. Junto com frequency_type define o ciclo de cobrança que a assinaturá terá.", - "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." - }, - "example": 1 - }, - "frequency_type": { - "required": true, - "type": "string", - "description": { - "en": "Indicates the type of frequency. Together with frequency they define the invoice cycle that a subscription will have.", - "pt": "Indica o tipo de frequência. Junto com frequency, definem o ciclo de cobrança que a assinatura terá.", - "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." - }, - "example": "months", - "enum": [ - { - "title": "days", - "description": { - "en": "Indicate a frequency in units of days", - "es": "Indicate a frequency in units of days", - "pt": "Indicate a frequency in units of days" - } - }, - { - "title": "months", - "description": { - "en": "Indicate a frequency in units of months", - "es": "Indicate a frequency in units of months", - "pt": "Indicate a frequency in units of months" - } - } - ] - }, - "repetitions": { - "type": "number", - "description": { - "en": "It is optional and is used to create a limited subscription. Indicates the number of times that we will repeat the recurrence cycle. If this param is not defined, subscription does not end until some of the parties cancel it.", - "pt": "É opcional e utilizado para criar uma assinatura limitada. Indica o número de itens que serão repetidos no ciclo de recorrência. Se este parâmetro não for definido, a assinatura não será finaliza até que uma das partes cancele.", - "es": "Es opcional y se utiliza para crear una suscripción limitada. Indica el número de veces que repetiremos el ciclo de recurrencia. Si no se define este param, la suscripción no finaliza hasta que alguna de las partes la cancela." - }, - "example": 12 - }, - "billing_day": { - "type": "number", - "description": { - "en": "Day of the month that the subscription will always be charged. It only accepts values between 1 and 28. This setting is only available for subscriptions with a plan associated.", - "pt": "Dia do mês que a assinatura será comprada. Apenas aceita valores entre 1 e 28. Esta configuração está disponível somente para assinaturas com plano associado.", - "es": "Día del mes en que se cobrará la suscripción. Solo acepta valores entre 1 y 28. Esta configuración solo está disponible para suscripciones con un plan asociado." - }, - "example": 10 - }, - "billing_day_proportional": { - "type": "boolean", - "description": { - "en": "Charge a proportional amount to the billing day at the time of registration.", - "pt": "Cobra um valor proporcional ao dia do faturamento no momento do cadastro.", - "es": "Cobra una suma proporcional al día de facturación en el momento del registro." - }, - "example": true, - "enum": [ - { - "title": "true", - "description": { - "en": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", - "es": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", - "pt": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis." - } - }, - { - "title": "false", - "description": { - "en": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", - "es": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", - "pt": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe." - } - } - ] - }, - "free_trial": { - "type": "object", - "description": { - "en": "Free trial data.", - "pt": "Informação de teste grátis", - "es": "Información sobre prueba gratuita." - }, - "properties": { - "frequency": { - "type": "number", - "description": { - "en": "Indicates the frequency value. Together with frequency_type they define the invoice cycle that a subscription will have.", - "pt": "Indica o valor de frequência. Junto com frequency_type define o ciclo de cobrança que a assinaturá terá.", - "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." - }, - "example": 1 - }, - "frequency_type": { - "type": "string", - "description": { - "en": "Indicates the type of frequency. Together with frequency they define the invoice cycle that a subscription will have.", - "pt": "Indica o tipo de frequência. Junto com frequency, definem o ciclo de cobrança que a assinatura terá.", - "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." - }, - "example": "months", - "enum": [ - { - "title": "days", - "description": { - "en": "Indicate a frequency in units of days", - "es": "Indicate a frequency in units of days", - "pt": "Indicate a frequency in units of days" - } - }, - { - "title": "months", - "description": { - "en": "Indicate a frequency in units of months", - "es": "Indicate a frequency in units of months", - "pt": "Indicate a frequency in units of months" - } - } - ] - } - } - }, - "transaction_amount": { - "type": "number", - "description": { - "en": "Amount that will be charged on each invoice.", - "pt": "Valor que será cobrado em cada fatura.", - "es": "Importe que se cobrará en cada factura." - }, - "example": 10 - }, - "currency_id": { - "required": true, - "type": "string", - "description": { - "en": "ID of the currency used in the payment.", - "pt": "Identificador da moeda utilizada no pagamento", - "es": "Identificador de la moneda utilizada en el pago" - }, - "example": "ARS", - "enum": [ - { - "title": "ARS", - "description": { - "en": "Argentine peso.", - "es": "Argentine peso.", - "pt": "Argentine peso." - } - }, - { - "title": "BRL", - "description": { - "en": "Brazilian real.", - "es": "Brazilian real.", - "pt": "Brazilian real." - } - }, - { - "title": "CLP", - "description": { - "en": "Chilean peso.", - "es": "Chilean peso.", - "pt": "Chilean peso." - } - }, - { - "title": "MXN", - "description": { - "en": "Mexican peso.", - "es": "Mexican peso.", - "pt": "Mexican peso." - } - }, - { - "title": "COP", - "description": { - "en": "Colombian peso.", - "es": "Colombian peso.", - "pt": "Colombian peso." - } - }, - { - "title": "PEN", - "description": { - "en": "Peruvian sol.", - "es": "Peruvian sol.", - "pt": "Peruvian sol." - } - }, - { - "title": "UYU", - "description": { - "en": "Uruguayan peso.", - "es": "Uruguayan peso.", - "pt": "Uruguayan peso." - } - } - ] - } - } - }, - "payment_methods_allowed": { - "type": "object", - "description": { - "en": "Payment methods enabled at checkout.", - "pt": "Meios de pagamento habilitados no checkout.", - "es": "Métodos de pago habilitados en el checkout." - }, - "properties": { - "payment_types": { - "type": "array", - "description": { - "en": "Payment types allowed in the payment flow.", - "pt": "Tipos de pagamento permitidos no fluxo de pagamento.", - "es": "Tipos de pago permitidos en el flujo de pago." - }, - "properties": { - "id": { - "type": "string", - "description": { - "en": "Payment type identifier.", - "pt": "Identificador do tipo de pagamento.", - "es": "Identificador de tipo de pago." - }, - "example": "credit_card" - } - } - }, - "payment_methods": { - "type": "array", - "description": { - "en": "Payment methods allowed in the payment flow.", - "pt": "Meios de pagamento permitidos no fluxo de pagamento.", - "es": "Métodos de pago permitidos en el flujo de pago." - }, - "properties": { - "id": { - "type": "string", - "description": { - "en": "Payment method identifier.", - "pt": "Id do meio de pagamento", - "es": "Identificador del medio de pago" - }, - "example": "bolbradesco" - } - } - } - } - }, - "back_url": { - "required": true, - "type": "string", - "description": { - "en": "Successful return URL. Use this setting to redirect your customers to your site after our checkout.", - "pt": "URL de retorno de sucesso. Use esta configuração para redirecionar seus clientes para o seu site após o checkout.", - "es": "URL de retorno exitosa. Use esta configuración para redirigir a tus clientes a su sitio después de nuestro checkout." - }, - "example": "https://www.yoursite.com" - } - } - } - } - } - }, - "responses": { - "200": { - "description": { - "es": "Success", - "pt": "Success", - "en": "Success" - }, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "example": "2c938084726fca480172750000000000", - "description": { - "en": "Unique subscription plan identifier.", - "pt": "Identificador único do plano de assinatura", - "es": "Identificador único del plan de suscripción." - } - }, - "application_id": { - "type": "number", - "example": 1234567812345678, - "description": { - "en": "Unique ID that identifies your application/integration. One of the keys in the pair that make up the credentials that identify an application/integration in your account.", - "pt": "ID único que identifica sua aplicação/integração. Uma das chaves do par que compõe as credenciais que identifica uma aplicação/integração na sua conta.", - "es": "ID único que identifica tu aplicación/integración. Una de las claves del par que componen las credenciales que identifican una aplicación/integración en tu cuenta." - } - }, - "collector_id": { - "type": "number", - "example": 100200300, - "description": { - "en": "Unique ID that identifies your user as a seller. This ID matches your User ID in our ecosystem.", - "pt": "ID único que identifica seu usuário como vendedor. Este ID corresponde ao seu User ID em nosso ecossistema.", - "es": "ID único que identifica a tu usuario como vendedor. Este ID coincide con tu User ID en nuestro ecosistema." - } - }, - "reason": { - "type": "string", - "description": { - "en": "It is a short description that the subscriber will see during the checkout process and in the notifications.", - "pt": "É uma breve descrição que o assinante verá durante o processo de checkout e nas notificações.", - "es": "Es una breve descripción que el suscriptor verá durante el checkout y en las notificaciones." - }, - "example": "Yoga classes" - }, - "auto_recurring": { - "type": "object", - "description": { - "en": "Configuration data for recurrence.", - "pt": "Configuração da data para recorrência.", - "es": "Información de configuración para la recurrencia." - }, - "properties": { - "frequency": { - "type": "number", - "description": { - "en": "Indicates the frequency value. Along with frequency_type they define the invoice cycle that a subscription will have.", - "pt": "Indica o valor de frequência. Junto com o frequency_type, define o ciclo de faturamento que uma assinaturá terá.", - "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." - }, - "example": 1 - }, - "frequency_type": { - "type": "string", - "description": { - "en": "Indicates the type of frequency. Together with frequency they define the invoice cycle that a subscription will have.", - "pt": "Indica o tipo de frequência. Junto com frequency, definem o ciclo de cobrança que a assinatura terá.", - "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." - }, - "example": "months", - "enum": [ - { - "title": "days", - "description": { - "en": "Indicate a frequency in units of days", - "es": "Indicate a frequency in units of days", - "pt": "Indicate a frequency in units of days" - } - }, - { - "title": "months", - "description": { - "en": "Indicate a frequency in units of months", - "es": "Indicate a frequency in units of months", - "pt": "Indicate a frequency in units of months" - } - } - ] - }, - "repetitions": { - "type": "number", - "description": { - "en": "It is optional and is used to create a limited subscription. Indicates the number of times that we will repeat the recurrence cycle. If this param is not defined, subscription does not end until some of the parties cancel it.", - "pt": "É opcional e utilizado para criar uma assinatura limitada. Indica o número de itens que serão repetidos no ciclo de recorrência. Se este parâmetro não for definido, a assinatura não será finaliza até que uma das partes cancele.", - "es": "Es opcional y se utiliza para crear una suscripción limitada. Indica el número de veces que repetiremos el ciclo de recurrencia. Si no se define este param, la suscripción no finaliza hasta que alguna de las partes la cancela." - }, - "example": 12 - }, - "billing_day": { - "type": "number", - "description": { - "en": "Day of the month that the subscription will always be charged. It only accepts values between 1 and 28.", - "pt": "Dia do mês no qual a assinatura será cobrada. Aceita apenas valores entre 1 e 28.", - "es": "Día del mes en que siempre se cobrará la suscripción. Solo acepta valores entre 1 y 28." - }, - "example": 10 - }, - "billing_day_proportional": { - "type": "boolean", - "description": { - "en": "Charge a proportional amount to the billing day at the time of registration.", - "pt": "Cobra um valor proporcional ao dia do faturamento no momento do cadastro.", - "es": "Cobra una suma proporcional al día de facturación en el momento del registro." - }, - "example": true, - "enum": [ - { - "title": "true", - "description": { - "en": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", - "es": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", - "pt": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis." - } - }, - { - "title": "false", - "description": { - "en": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", - "es": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", - "pt": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe." - } - } - ] - }, - "free_trial": { - "type": "object", - "description": { - "en": "Free trial data.", - "pt": "Informação de teste grátis", - "es": "Información sobre prueba gratuita." + "properties": { + "frequency": { + "type": "number", + "description": { + "en": "Indicates the frequency value. Together with frequency_type they define the invoice cycle that a subscription will have.", + "pt": "Indica o valor de frequência. Junto com frequency_type define o ciclo de cobrança que a assinaturá terá.", + "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." + }, + "example": 1 }, - "properties": { - "frequency": { - "type": "number", - "description": { - "en": "Indicates the frequency value. Along with frequency_type they define the invoice cycle that a subscription will have.", - "pt": "Indica o valor de frequência. Junto com o frequency_type, define o ciclo de faturamento que uma assinaturá terá.", - "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." - }, - "example": 1 + "frequency_type": { + "type": "string", + "description": { + "en": "Indicates the type of frequency. Together with frequency they define the invoice cycle that a subscription will have.", + "pt": "Indica o tipo de frequência. Junto com frequency, definem o ciclo de cobrança que a assinatura terá.", + "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." }, - "frequency_type": { - "type": "string", - "description": { - "en": "Indicates the type of frequency. Along with frequency they define the invoice cycle that a subscription will have.", - "pt": "Indica o valor de frequência. Junto com o frequency, define o ciclo de faturamento que uma assinaturá terá.", - "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." + "example": "months", + "enum": [ + { + "title": "days", + "description": { + "en": "Indicate a frequency in units of days", + "es": "Indicate a frequency in units of days", + "pt": "Indicate a frequency in units of days" + } }, - "example": "months", - "enum": [ - { - "title": "days", - "description": { - "en": "Indicate a frequency in units of days", - "es": "Indicate a frequency in units of days", - "pt": "Indicate a frequency in units of days" - } - }, - { - "title": "months", - "description": { - "en": "Indicate a frequency in units of months", - "es": "Indicate a frequency in units of months", - "pt": "Indicate a frequency in units of months" - } + { + "title": "months", + "description": { + "en": "Indicate a frequency in units of months", + "es": "Indicate a frequency in units of months", + "pt": "Indicate a frequency in units of months" } - ] - } + } + ] } + } + }, + "transaction_amount": { + "type": "number", + "description": { + "en": "Amount that will be charged on each invoice.", + "pt": "Valor que será cobrado em cada fatura.", + "es": "Importe que se cobrará en cada factura." }, - "transaction_amount": { - "type": "number", - "description": { - "en": "Amount that will be charged on each invoice.", - "pt": "Valor que será cobrado em cada fatura.", - "es": "Importe que se cobrará en cada factura." - }, - "example": 10 + "example": 10 + }, + "currency_id": { + "required": true, + "type": "string", + "description": { + "en": "ID of the currency used in the payment.", + "pt": "Identificador da moeda utilizada no pagamento", + "es": "Identificador de la moneda utilizada en el pago" }, - "currency_id": { - "type": "string", - "description": { - "en": "ID of the currency used in the payment.", - "pt": "Identificador da moeda utilizada no pagamento", - "es": "Identificador de la moneda utilizada en el pago" + "example": "ARS", + "enum": [ + { + "title": "ARS", + "description": { + "en": "Argentine peso.", + "es": "Argentine peso.", + "pt": "Argentine peso." + } }, - "enum": [ - { - "title": "ARS", - "description": { - "en": "Argentine peso.", - "es": "Argentine peso.", - "pt": "Argentine peso." - } - }, - { - "title": "BRL", - "description": { - "en": "Brazilian real.", - "es": "Brazilian real.", - "pt": "Brazilian real." - } - }, - { - "title": "CLP", - "description": { - "en": "Chilean peso.", - "es": "Chilean peso.", - "pt": "Chilean peso." - } - }, - { - "title": "MXN", - "description": { - "en": "Mexican peso.", - "es": "Mexican peso.", - "pt": "Mexican peso." - } - }, - { - "title": "COP", - "description": { - "en": "Colombian peso.", - "es": "Colombian peso.", - "pt": "Colombian peso." - } - }, - { - "title": "PEN", - "description": { - "en": "Peruvian sol.", - "es": "Peruvian sol.", - "pt": "Peruvian sol." - } - }, - { - "title": "UYU", - "description": { - "en": "Uruguayan peso.", - "es": "Uruguayan peso.", - "pt": "Uruguayan peso." - } + { + "title": "BRL", + "description": { + "en": "Brazilian real.", + "es": "Brazilian real.", + "pt": "Brazilian real." } - ], - "example": "ARS" - } - } - }, - "payment_methods_allowed": { - "type": "object", - "description": { - "en": "Payment methods enabled at checkout.", - "pt": "Meios de pagamento habilitados no checkout.", - "es": "Métodos de pago habilitados en el checkout." - }, - "properties": { - "payment_types": { - "type": "array", - "description": { - "en": "Payment types allowed in the payment flow.", - "pt": "Tipos de pagamento permitidos no fluxo de pagamento.", - "es": "Tipos de pago permitidos en el flujo de pago." }, - "properties": { - "id": { - "type": "string", - "description": { - "en": "Payment type identifier.", - "pt": "Identificador do tipo de pagamento.", - "es": "Identificador de tipo de pago." - }, - "example": "credit_card" + { + "title": "CLP", + "description": { + "en": "Chilean peso.", + "es": "Chilean peso.", + "pt": "Chilean peso." } - } - }, - "payment_methods": { - "type": "array", - "description": { - "en": "Payment methods allowed in the payment flow.", - "pt": "Meios de pagamento permitidos no fluxo de pagamento.", - "es": "Métodos de pago permitidos en el flujo de pago." }, - "properties": { - "id": { - "type": "string", - "description": { - "en": "Payment method identifier.", - "pt": "Id do meio de pagamento", - "es": "Identificador del medio de pago" - }, - "example": "bolbradesco" + { + "title": "MXN", + "description": { + "en": "Mexican peso.", + "es": "Mexican peso.", + "pt": "Mexican peso." + } + }, + { + "title": "COP", + "description": { + "en": "Colombian peso.", + "es": "Colombian peso.", + "pt": "Colombian peso." + } + }, + { + "title": "PEN", + "description": { + "en": "Peruvian sol.", + "es": "Peruvian sol.", + "pt": "Peruvian sol." + } + }, + { + "title": "UYU", + "description": { + "en": "Uruguayan peso.", + "es": "Uruguayan peso.", + "pt": "Uruguayan peso." } } - } - }, - "back_url": { - "type": "string", - "description": { - "en": "Successful return URL. Use this setting to redirect your customers to your site after our checkout.", - "pt": "URL de retorno de sucesso. Use esta configuração para redirecionar seus clientes para o seu site após o checkout.", - "es": "URL de retorno exitosa. Use esta configuración para redirigir a tus clientes a su sitio después de nuestro checkout." - }, - "example": "https://www.mercadopago.com.ar" - } - }, - "back_url": { - "type": "string", - "description": { - "en": "Successful return URL. Use this setting to redirect your customers to your site after our checkout.", - "pt": "URL de retorno de sucesso. Use esta configuração para redirecionar seus clientes para o seu site após o checkout.", - "es": "URL de retorno exitosa. Use esta configuración para redirigir a tus clientes a su sitio después de nuestro checkout." - }, - "example": "https://www.mercadopago.com.ar" - }, - "external_reference": { - "type": "string", - "example": 23546246234, - "description": { - "en": "Reference to sync with your system. This is a free text field to help you with your integration to link the entities.", - "pt": "Referência para sincronizar com seu sistema. Este é um campo de texto livre para ajudar com a integração para vincular as entidades.", - "es": "Referencia para sincronizar con tu sistema. Este es un campo de texto libre para ayudarte con tu integración para vincular las entidades." - } - }, - "init_point": { - "type": "string", - "example": "https://www.mercadopago.com.ar/subscriptions/checkout?preapproval_plan_id=2c938084726fca480172750000000000", - "description": { - "en": "Url to checkout to add payment method", - "pt": "URL de checkout para adicionar um meio de pagamento", - "es": "URL al checkout para agregar el método de pago" - } - }, - "date_created": { - "type": "string", - "example": "2022-01-01T15:12:25.892Z", - "description": { - "en": "Creation date", - "pt": "Data de criação", - "es": "Fecha de creación" - } - }, - "last_modified": { - "type": "string", - "example": "2022-01-01T15:12:25.892Z", - "description": { - "en": "Date of last modification", - "pt": "Data da última modificação.", - "es": "Fecha de última modificación." + ] } + } + }, + "payment_methods_allowed": { + "type": "object", + "description": { + "en": "Payment methods enabled at checkout.", + "pt": "Meios de pagamento habilitados no checkout.", + "es": "Métodos de pago habilitados en el checkout." }, - "status": { - "type": "string", - "example": "active", - "description": { - "en": "Status of the plan.", - "pt": "Status do plano.", - "es": "Estado del plan." - }, - "enum": [ - { - "title": "active", - "description": { - "en": "Plan available to create subscriptions", - "es": "Plan available to create subscriptions", - "pt": "Plan available to create subscriptions" + "properties": { + "payment_types": { + "type": "array", + "description": { + "en": "Payment types allowed in the payment flow.", + "pt": "Tipos de pagamento permitidos no fluxo de pagamento.", + "es": "Tipos de pago permitidos en el flujo de pago." + }, + "properties": { + "id": { + "type": "string", + "description": { + "en": "Payment type identifier.", + "pt": "Identificador do tipo de pagamento.", + "es": "Identificador de tipo de pago." + }, + "example": "credit_card" } + } + }, + "payment_methods": { + "type": "array", + "description": { + "en": "Payment methods allowed in the payment flow.", + "pt": "Meios de pagamento permitidos no fluxo de pagamento.", + "es": "Métodos de pago permitidos en el flujo de pago." }, - { - "title": "cancelled", - "description": { - "en": "Plan not available to create subscriptions", - "es": "Plan not available to create subscriptions", - "pt": "Plan not available to create subscriptions" + "properties": { + "id": { + "type": "string", + "description": { + "en": "Payment method identifier.", + "pt": "Id do meio de pagamento", + "es": "Identificador del medio de pago" + }, + "example": "bolbradesco" } } - ] + } } + }, + "back_url": { + "required": true, + "type": "string", + "description": { + "en": "Successful return URL. Use this setting to redirect your customers to your site after our checkout.", + "pt": "URL de retorno de sucesso. Use esta configuração para redirecionar seus clientes para o seu site após o checkout.", + "es": "URL de retorno exitosa. Use esta configuración para redirigir a tus clientes a su sitio después de nuestro checkout." + }, + "example": "https://www.yoursite.com" } } } } - }, - "400": { + } + }, + "responses": { + "200": { "description": { - "en": "Error", - "pt": "Erro", - "es": "Error" + "es": "Success", + "pt": "Success", + "en": "Success" }, "content": { "application/json": { "schema": { "type": "object", "properties": { - "errorKey": { + "id": { "type": "string", - "enum": [ - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", + "example": "2c938084726fca480172750000000000", + "description": { + "en": "Unique subscription plan identifier.", + "pt": "Identificador único do plano de assinatura", + "es": "Identificador único del plan de suscripción." + } + }, + "application_id": { + "type": "number", + "example": 1234567812345678, + "description": { + "en": "Unique ID that identifies your application/integration. One of the keys in the pair that make up the credentials that identify an application/integration in your account.", + "pt": "ID único que identifica sua aplicação/integração. Uma das chaves do par que compõe as credenciais que identifica uma aplicação/integração na sua conta.", + "es": "ID único que identifica tu aplicación/integración. Una de las claves del par que componen las credenciales que identifican una aplicación/integración en tu cuenta." + } + }, + "collector_id": { + "type": "number", + "example": 100200300, + "description": { + "en": "Unique ID that identifies your user as a seller. This ID matches your User ID in our ecosystem.", + "pt": "ID único que identifica seu usuário como vendedor. Este ID corresponde ao seu User ID em nosso ecossistema.", + "es": "ID único que identifica a tu usuario como vendedor. Este ID coincide con tu User ID en nuestro ecosistema." + } + }, + "reason": { + "type": "string", + "description": { + "en": "It is a short description that the subscriber will see during the checkout process and in the notifications.", + "pt": "É uma breve descrição que o assinante verá durante o processo de checkout e nas notificações.", + "es": "Es una breve descripción que el suscriptor verá durante el checkout y en las notificaciones." + }, + "example": "Yoga classes" + }, + "auto_recurring": { + "type": "object", + "description": { + "en": "Configuration data for recurrence.", + "pt": "Configuração da data para recorrência.", + "es": "Información de configuración para la recurrencia." + }, + "properties": { + "frequency": { + "type": "number", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "en": "Indicates the frequency value. Along with frequency_type they define the invoice cycle that a subscription will have.", + "pt": "Indica o valor de frequência. Junto com o frequency_type, define o ciclo de faturamento que uma assinaturá terá.", + "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." + }, + "example": 1 }, - { - "title": "400", + "frequency_type": { + "type": "string", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "en": "Indicates the type of frequency. Together with frequency they define the invoice cycle that a subscription will have.", + "pt": "Indica o tipo de frequência. Junto com frequency, definem o ciclo de cobrança que a assinatura terá.", + "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." + }, + "example": "months", + "enum": [ + { + "title": "days", + "description": { + "en": "Indicate a frequency in units of days", + "es": "Indicate a frequency in units of days", + "pt": "Indicate a frequency in units of days" + } + }, + { + "title": "months", + "description": { + "en": "Indicate a frequency in units of months", + "es": "Indicate a frequency in units of months", + "pt": "Indicate a frequency in units of months" + } + } + ] }, - { - "title": "400", + "repetitions": { + "type": "number", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "en": "It is optional and is used to create a limited subscription. Indicates the number of times that we will repeat the recurrence cycle. If this param is not defined, subscription does not end until some of the parties cancel it.", + "pt": "É opcional e utilizado para criar uma assinatura limitada. Indica o número de itens que serão repetidos no ciclo de recorrência. Se este parâmetro não for definido, a assinatura não será finaliza até que uma das partes cancele.", + "es": "Es opcional y se utiliza para crear una suscripción limitada. Indica el número de veces que repetiremos el ciclo de recurrencia. Si no se define este param, la suscripción no finaliza hasta que alguna de las partes la cancela." + }, + "example": 12 }, - { - "title": "400", + "billing_day": { + "type": "number", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "en": "Day of the month that the subscription will always be charged. It only accepts values between 1 and 28.", + "pt": "Dia do mês no qual a assinatura será cobrada. Aceita apenas valores entre 1 e 28.", + "es": "Día del mes en que siempre se cobrará la suscripción. Solo acepta valores entre 1 y 28." + }, + "example": 10 }, - { - "title": "400", + "billing_day_proportional": { + "type": "boolean", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "en": "Charge a proportional amount to the billing day at the time of registration.", + "pt": "Cobra um valor proporcional ao dia do faturamento no momento do cadastro.", + "es": "Cobra una suma proporcional al día de facturación en el momento del registro." + }, + "example": true, + "enum": [ + { + "title": "true", + "description": { + "en": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", + "es": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis.", + "pt": "Charge a proportional amount based on the days remaining in the next billing cycle. Billing cycles are always calculated on a 30-day basis." + } + }, + { + "title": "false", + "description": { + "en": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", + "es": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe.", + "pt": "Charge the amount of the subscription regardless of when in the billing cycle customer subscribe." + } + } + ] }, - { - "title": "400", + "free_trial": { + "type": "object", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Free trial data.", + "pt": "Informação de teste grátis", + "es": "Información sobre prueba gratuita." + }, + "properties": { + "frequency": { + "type": "number", + "description": { + "en": "Indicates the frequency value. Along with frequency_type they define the invoice cycle that a subscription will have.", + "pt": "Indica o valor de frequência. Junto com o frequency_type, define o ciclo de faturamento que uma assinaturá terá.", + "es": "Indica el valor de la frecuencia. Junto con frequency_type definen el ciclo de facturación que tendrá una suscripción." + }, + "example": 1 + }, + "frequency_type": { + "type": "string", + "description": { + "en": "Indicates the type of frequency. Along with frequency they define the invoice cycle that a subscription will have.", + "pt": "Indica o valor de frequência. Junto com o frequency, define o ciclo de faturamento que uma assinaturá terá.", + "es": "Indica el tipo de frecuencia. Junto con frequency definen el ciclo de facturación que tendrá una suscripción." + }, + "example": "months", + "enum": [ + { + "title": "days", + "description": { + "en": "Indicate a frequency in units of days", + "es": "Indicate a frequency in units of days", + "pt": "Indicate a frequency in units of days" + } + }, + { + "title": "months", + "description": { + "en": "Indicate a frequency in units of months", + "es": "Indicate a frequency in units of months", + "pt": "Indicate a frequency in units of months" + } + } + ] + } } }, - { - "title": "400", + "transaction_amount": { + "type": "number", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } + "en": "Amount that will be charged on each invoice.", + "pt": "Valor que será cobrado em cada fatura.", + "es": "Importe que se cobrará en cada factura." + }, + "example": 10 }, - { - "title": "400", + "currency_id": { + "type": "string", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" - } - }, - { - "title": "400", + "en": "ID of the currency used in the payment.", + "pt": "Identificador da moeda utilizada no pagamento", + "es": "Identificador de la moneda utilizada en el pago" + }, + "enum": [ + { + "title": "ARS", + "description": { + "en": "Argentine peso.", + "es": "Argentine peso.", + "pt": "Argentine peso." + } + }, + { + "title": "BRL", + "description": { + "en": "Brazilian real.", + "es": "Brazilian real.", + "pt": "Brazilian real." + } + }, + { + "title": "CLP", + "description": { + "en": "Chilean peso.", + "es": "Chilean peso.", + "pt": "Chilean peso." + } + }, + { + "title": "MXN", + "description": { + "en": "Mexican peso.", + "es": "Mexican peso.", + "pt": "Mexican peso." + } + }, + { + "title": "COP", + "description": { + "en": "Colombian peso.", + "es": "Colombian peso.", + "pt": "Colombian peso." + } + }, + { + "title": "PEN", + "description": { + "en": "Peruvian sol.", + "es": "Peruvian sol.", + "pt": "Peruvian sol." + } + }, + { + "title": "UYU", + "description": { + "en": "Uruguayan peso.", + "es": "Uruguayan peso.", + "pt": "Uruguayan peso." + } + } + ], + "example": "ARS" + } + } + }, + "payment_methods_allowed": { + "type": "object", + "description": { + "en": "Payment methods enabled at checkout.", + "pt": "Meios de pagamento habilitados no checkout.", + "es": "Métodos de pago habilitados en el checkout." + }, + "properties": { + "payment_types": { + "type": "array", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Payment types allowed in the payment flow.", + "pt": "Tipos de pagamento permitidos no fluxo de pagamento.", + "es": "Tipos de pago permitidos en el flujo de pago." + }, + "properties": { + "id": { + "type": "string", + "description": { + "en": "Payment type identifier.", + "pt": "Identificador do tipo de pagamento.", + "es": "Identificador de tipo de pago." + }, + "example": "credit_card" + } } }, - { - "title": "400", + "payment_methods": { + "type": "array", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Payment methods allowed in the payment flow.", + "pt": "Meios de pagamento permitidos no fluxo de pagamento.", + "es": "Métodos de pago permitidos en el flujo de pago." + }, + "properties": { + "id": { + "type": "string", + "description": { + "en": "Payment method identifier.", + "pt": "Id do meio de pagamento", + "es": "Identificador del medio de pago" + }, + "example": "bolbradesco" + } } + } + }, + "back_url": { + "type": "string", + "description": { + "en": "Successful return URL. Use this setting to redirect your customers to your site after our checkout.", + "pt": "URL de retorno de sucesso. Use esta configuração para redirecionar seus clientes para o seu site após o checkout.", + "es": "URL de retorno exitosa. Use esta configuración para redirigir a tus clientes a su sitio después de nuestro checkout." }, + "example": "https://www.mercadopago.com.ar" + } + }, + "back_url": { + "type": "string", + "description": { + "en": "Successful return URL. Use this setting to redirect your customers to your site after our checkout.", + "pt": "URL de retorno de sucesso. Use esta configuração para redirecionar seus clientes para o seu site após o checkout.", + "es": "URL de retorno exitosa. Use esta configuración para redirigir a tus clientes a su sitio después de nuestro checkout." + }, + "example": "https://www.mercadopago.com.ar" + }, + "external_reference": { + "type": "string", + "example": 23546246234, + "description": { + "en": "Reference to sync with your system. This is a free text field to help you with your integration to link the entities.", + "pt": "Referência para sincronizar com seu sistema. Este é um campo de texto livre para ajudar com a integração para vincular as entidades.", + "es": "Referencia para sincronizar con tu sistema. Este es un campo de texto libre para ayudarte con tu integración para vincular las entidades." + } + }, + "init_point": { + "type": "string", + "example": "https://www.mercadopago.com.ar/subscriptions/checkout?preapproval_plan_id=2c938084726fca480172750000000000", + "description": { + "en": "Url to checkout to add payment method", + "pt": "URL de checkout para adicionar um meio de pagamento", + "es": "URL al checkout para agregar el método de pago" + } + }, + "date_created": { + "type": "string", + "example": "2022-01-01T15:12:25.892Z", + "description": { + "en": "Creation date", + "pt": "Data de criação", + "es": "Fecha de creación" + } + }, + "last_modified": { + "type": "string", + "example": "2022-01-01T15:12:25.892Z", + "description": { + "en": "Date of last modification", + "pt": "Data da última modificação.", + "es": "Fecha de última modificación." + } + }, + "status": { + "type": "string", + "example": "active", + "description": { + "en": "Status of the plan.", + "pt": "Status do plano.", + "es": "Estado del plan." + }, + "enum": [ { - "title": "400", + "title": "active", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Plan available to create subscriptions", + "es": "Plan available to create subscriptions", + "pt": "Plan available to create subscriptions" } }, { - "title": "400", + "title": "cancelled", "description": { - "en": "Bad-Request", - "es": "Bad-Request", - "pt": "Bad-Request" + "en": "Plan not available to create subscriptions", + "es": "Plan not available to create subscriptions", + "pt": "Plan not available to create subscriptions" } - }, + } + ] + } + } + } + } + } + }, + "400": { + "description": { + "en": "Error", + "pt": "Erro", + "es": "Error" + }, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errorKey": { + "type": "string", + "enum": [ { "title": "400", "description": { @@ -3465,70 +2945,6 @@ "errorKey": { "type": "string", "enum": [ - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, { "title": "400", "description": { @@ -5288,14 +4704,6 @@ "errorKey": { "type": "string", "enum": [ - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, { "title": "400", "description": { @@ -7336,22 +6744,6 @@ "errorKey": { "type": "string", "enum": [ - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, { "title": "400", "description": { @@ -8256,14 +7648,6 @@ "errorKey": { "type": "string", "enum": [ - { - "title": "400", - "description": { - "en": "Bad-request", - "es": "Bad-request", - "pt": "Bad-request" - } - }, { "title": "400", "description": {