MercadoPago Troubleshooting

Unofficial Content

This page summarizes some of the errors and common issues that you may be encountered in runtime using the GeneXus SDK for Mercado Pago.

Create Payment

Invalid transaction_amount

Problem: When creating a Payment using PaymentCustomCheckout.CreatePayment, this message error is returned:

{
  "message": "Invalid transaction_amount",
  "error": "bad_request",
  "status": 400,
  "cause": [
    {
      "code": 4037,
      "description": "Invalid transaction_amount",
      "data": null
    }
  ]
}

Cause/Solution

  • The value for &PaymentSDT.transaction_amount is too small. For instance, paying with credit card returns that error for an amount less than $15.

 

Unauthorized use of live credentials

Problem: This error is displayed trying to pay by credit card with Checkout API, where the seller is a test user with production credentials

{
  "message": "access denied",
  "error": "unauthorized",
  "status": 401,
  "cause": [
    {
      "code": "300",
      "description": "Unauthorized use of live credentials"
    }
  ]
}

Some services, such as subscription payments and card payments made via API do not allow testing in sanbox mode, they only work in production mode. This is because special permissions are required to manage payments and make payments via API. So, if Test Users are used for testing, they must have Production Credentials enabled. You may need to ask your local Mercado Pago agent for this. In this situation, do not use test user as buyer (something like test@mail.com may cause error). 

 

MercadoPago.Users.CreateCustomer

Invalid User involved

Problem: When creating a Customer using MercadoPago.Users.CreateCustomer, this message error is returned:

{
   "message":"invalid parameters ",
   "error":"bad_request",
   "status":400,
   "cause":[
      {
         "code":"150",
         "description":"invalid users involved"
      }
   ]
}

Cause/Solution: The buyer's e-mail address corresponds to a Test User and the seller credentials not.

Native Mobile Checkout - MercadoPagoCheckout.GetCardToken

Could not find identification type

The error occurs when exchanging the card data for a token, through the MercadoPagoCheckout.GetCardToken method.

The cause of the error is that the Access Token and Public Key properties are not properly set on the Main Mobile object. The values must match those specified in the Procedure GetAccessToken and GetPublicKey, respectively.