debug
This commit is contained in:
parent
f71c5da2c0
commit
199b45508d
|
@ -38,7 +38,7 @@ class BillingSrv
|
||||||
|
|
||||||
if (empty($customer->getStripeCustomerId()))
|
if (empty($customer->getStripeCustomerId()))
|
||||||
{
|
{
|
||||||
$customer = \Stripe\Customer::create(array(
|
$stripeCustomer = \Stripe\Customer::create(array(
|
||||||
"description" => "Customer for ".$customer->getUsername(),
|
"description" => "Customer for ".$customer->getUsername(),
|
||||||
"email" => $customer->getUsername(),
|
"email" => $customer->getUsername(),
|
||||||
"metadata" => [
|
"metadata" => [
|
||||||
|
@ -48,7 +48,7 @@ class BillingSrv
|
||||||
]
|
]
|
||||||
));
|
));
|
||||||
|
|
||||||
$customerId = $customer["id"];
|
$customerId = $stripeCustomer["id"];
|
||||||
$customer->setStripeCustomerId($customerId);
|
$customer->setStripeCustomerId($customerId);
|
||||||
$this->manager->persist($customer);
|
$this->manager->persist($customer);
|
||||||
$this->manager->flush();
|
$this->manager->flush();
|
||||||
|
|
Loading…
Reference in New Issue