diff --git a/README.md b/README.md index 509b96e..233da43 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,11 @@ import mercadopago sdk = mercadopago.SDK("YOUR_ACCESS_TOKEN") +request_options = mercadopago.config.RequestOptions() +request_options.custom_headers = { + 'x-idempotency-key': '' +} + payment_data = { "transaction_amount": 100, "token": "CARD_TOKEN", @@ -37,7 +42,7 @@ payment_data = { "email": 'test_user_123456@testuser.com' } } -result = sdk.payment().create(payment_data) +result = sdk.payment().create(payment_data, request_options) payment = result["response"] print(payment)