140: invalid card owner, Payment market, Associate card to Customer

0

This is my code

public function create_card($id, $token)
    {
        $request = array(
                            "uri" => "/v1/customers/{$id}/cards",
                            "data" => array(
                                  "token"=>$token
                                            ),
                            "params" => array(
                                "access_token" => $this->get_access_token())

                        );

        $customer = MPRestClient::post($request);
        return $customer;
    }

but in the end when I try to associate the card I get this error: 140: invalid card owner,

Of course I already capture the card token and already create the customer, what I need is to simply associate the card with the customer

    
asked by Eder Daniel Valcarcel Vanegas 01.09.2018 в 18:39
source

0 answers