From 199b45508d47804134e57dba3a12f12dd65fd3ef Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Wed, 18 Sep 2019 16:24:38 +0200 Subject: [PATCH] debug --- BillingBundle/Service/BillingSrv.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BillingBundle/Service/BillingSrv.php b/BillingBundle/Service/BillingSrv.php index 9312158..86797fe 100644 --- a/BillingBundle/Service/BillingSrv.php +++ b/BillingBundle/Service/BillingSrv.php @@ -38,7 +38,7 @@ class BillingSrv if (empty($customer->getStripeCustomerId())) { - $customer = \Stripe\Customer::create(array( + $stripeCustomer = \Stripe\Customer::create(array( "description" => "Customer for ".$customer->getUsername(), "email" => $customer->getUsername(), "metadata" => [ @@ -48,7 +48,7 @@ class BillingSrv ] )); - $customerId = $customer["id"]; + $customerId = $stripeCustomer["id"]; $customer->setStripeCustomerId($customerId); $this->manager->persist($customer); $this->manager->flush();