Skip to main content
added 83 characters in body
Source Link
Pingui
  • 1.5k
  • 4
  • 16
  • 31

I've just found the answer, maybe it helps someone of you, too:

You can replace the old card with the new one like so:

$customer = \Stripe\Customer::retrieve($client_id);
$new_card = $customer->sources->create(array("source" => $token));
$customer->default_source = $token;$new_card->id;
$customer.save->save();

I've just found the answer, maybe it helps someone of you, too:

You can replace the old card with the new one like so:

$customer = \Stripe\Customer::retrieve($client_id);
$customer->default_source = $token;
$customer.save()

I've just found the answer, maybe it helps someone of you, too:

You can replace the old card with the new one like so:

$customer = \Stripe\Customer::retrieve($client_id);
$new_card = $customer->sources->create(array("source" => $token));
$customer->default_source = $new_card->id;
$customer->save();
Source Link
Pingui
  • 1.5k
  • 4
  • 16
  • 31

I've just found the answer, maybe it helps someone of you, too:

You can replace the old card with the new one like so:

$customer = \Stripe\Customer::retrieve($client_id);
$customer->default_source = $token;
$customer.save()