MercadoPago API does not take the test card offered in the documentation

0

I am trying to make a trial purchase from the production link (having defined the sandbox_mode (TRUE) before):

$mp = new \MP(BASIC_CHECKOUT_CLIENT_ID, BASIC_CHECKOUT_CLIENT_SECRET);
$mp->sandbox_mode(TRUE);

but when I try to make the purchase, after loading all the info, I click on "I already speak with a visa and I authorize the payment", and it reloads the first page of the payment process.

Does anyone know if the sandbox mode is going wrong at this particular point, or if it is necessary to load some other precise data that is not commented on in the documentation?

The payment process as it is appearing is this:

Well, I was able to move forward a bit using a test user doing what is indicated here: link

The problem I have now is that when I try to finish the purchase I get an error:

  

One of the parties is a test user.

The purchase link is generated using my basic checkout credentials, and adding as I put in the previous question $mp->sandbox_mode(TRUE) . How do I make the purchase to another test user?

Do I have to generate a separate vendor account in mercadopago from the user's test data? I did not find anything about it in the little presentable documentation that they offer in the site of mercadopago

    
asked by Mariano Gomez 11.03.2017 в 18:22
source

1 answer

2

Indeed the documentation for developers is a bit poor, you must create another test user for the vendor, manage each one in a different browser for convenience, and in the seller, you must access their credentials to indicate your tokens when creating your MP object. You must turn off the sandbox mode (it does not go well the same) and create your preference directly with the init_point. There you can use test cards or even real without problem. Good luck.

    
answered by 01.04.2017 в 10:05