Skip to content
Snippets Groups Projects

Issue #3359956 -class-name

6 files
+ 25
25
Compare changes
  • Side-by-side
  • Inline

Files

@@ -7,7 +7,7 @@ use ChargeBee\ChargeBee\Environment;
use ChargeBee\ChargeBee\Models\Subscription;
use Drupal\Core\Url;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Drupal\integration_chargebee\Services\integration_chargebeeService;
use Drupal\integration_chargebee\Services\ChargebeeService;
use Drupal\Core\Database\Connection;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Session\AccountInterface;
@@ -44,9 +44,9 @@ class PaymentController extends ControllerBase {
/**
* integration_chargebee Service.
*
* @var \Drupal\integration_chargebee\Services\integration_chargebeeService
* @var \Drupal\integration_chargebee\Services\ChargebeeService
*/
protected $integration_chargebeeservice;
protected $chargebeeService;
/**
* Logger.
@@ -65,7 +65,7 @@ class PaymentController extends ControllerBase {
* Connection.
* @param \Drupal\Core\Messenger\Messenger $messenger
* Messenger.
* @param \Drupal\integration_chargebee\Services\integration_chargebeeService $integration_chargebeeservice
* @param \Drupal\integration_chargebee\Services\ChargebeeService $chargebeeServicee
* integration_chargebee Service.
* @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory
* Logger.
@@ -74,12 +74,12 @@ class PaymentController extends ControllerBase {
AccountInterface $account,
Connection $connection,
Messenger $messenger,
integration_chargebeeService $integration_chargebeeservice,
ChargebeeService $chargebeeService,
LoggerChannelFactoryInterface $logger_factory) {
$this->account = $account;
$this->connection = $connection;
$this->messenger = $messenger;
$this->integration_chargebeeservice = $integration_chargebeeservice;
$this->chargebeeService = $chargebeeService;
$this->loggerFactory = $logger_factory->get('integration_chargebee');
}
@@ -115,8 +115,8 @@ class PaymentController extends ControllerBase {
$subscription = $result->subscription();
$customer = $result->customer();
$subscriptions = $this->integration_chargebeeservice->getProtectedValue($subscription, '_data');
$subscriptions_item = $this->integration_chargebeeservice->getProtectedValue($subscriptions['subscriptionItems'][0], '_data');
$subscriptions = $this->chargebeeService->getProtectedValue($subscription, '_data');
$subscriptions_item = $this->chargebeeService->getProtectedValue($subscriptions['subscriptionItems'][0], '_data');
$startedAt = $subscriptions['startedAt'];
$nextBillingAt = $subscriptions['nextBillingAt'];
Loading