Card to Customer is not associated with the PAYMENT MARKET api

0

Hi, I'm trying to associate a card token with a Customer with MercadoPago's api, and do the steps in the documentation, the Customer creates it well, I associate the card token (created from the mobile app with the sdk), and it says status 200 (as if everything was correct). But when I look for the cards of that Customer, he does not show me any. What can be happening ??

This is the code I'm using:

$card = $this->mp->post ("/v1/customers/".$customer_id."/cards", array("token" => $token));

This is the response that it generates:

Array
(
[status] => 200
[response] => Array
    (
    )

)

If I look for the cards for that client, he throws an empty array at me. But if I try to generate a card again for that client with the same token, I get an invalid card owner.

    
asked by Mariano Serravalle 04.09.2018 в 21:21
source

0 answers