From a7f691aebd001fd911d1914237e5da954f33c325 Mon Sep 17 00:00:00 2001 From: Lucas Duarte Date: Mon, 11 Mar 2024 10:32:15 -0300 Subject: [PATCH] Update exemple paymentmethod --- README.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 28e8e670..8971dd43 100644 --- a/README.md +++ b/README.md @@ -78,17 +78,8 @@ Before making API requests, you need to initialize the SDK with your access toke To make requests to the Mercado Pago APIs, you can use the packages provided by the SDK. For example, to list payment methods, you can use the `paymentmethod` package: ```go - req := payment.Request{ - TransactionAmount: 105.1, - Payer: &payment.PayerRequest{ - Email: "{{EMAIL}}", - }, - Token: "{{CARD_TOKEN}}", - Installments: 1, - } - - client := payment.NewClient(cfg) - pay, err := client.Create(context.Background(), req) + client := paymentmethod.NewClient(cfg) + paymentMethods, err := client.List(context.Background()) ``` ### Exception throwing handling