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