Stripe Payment: Obteniendo error ya que el cliente cus _ ***** no tiene una tarjeta vinculada con ID tok _ *****
En el modo de prueba, cuando creo un nuevo cliente e intento el pago, recibí este error.
El cliente cus_7Zz2BCnybIZLGw no tiene una tarjeta vinculada con ID tok_17Kp8GAwLkQPB7OqrrM73VVI
Estoy usando el número de tarjeta: 4242424242424242 exp_mes: 12 exp_year 2016
La respuesta de retorno es,
Array
(
[charge_status] =>
[error_info] => Array
(
[type] => invalid_request_error
[message] => Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID tok_17Kp8GAwLkQPB7OqrrM73VVI.
[param] => card
[code] => missing
)
[message] => Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID tok_17Kp8GAwLkQPB7OqrrM73VVI.
)
Los datos de carga de entrada son,
$customer = Stripe_Customer::create(array(
'account_balance' => 100,
'source' => $token,
'email' => strip_tags(trim($email))
)
);
$customer_id = $customer->id;
$charge = array(
'card' => 4242424242424242,
'amount' => 100,
'currency' => 'cad',
'receipt_email' => [email protected],
'description' => 'my payment',
'customer' => $customer_id
);