Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from pmclain/hotfix/admin-data-builder
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
pmclain authored Jul 19, 2017
2 parents 4a6f4eb + 525ceec commit 94c7574
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Gateway/Request/PaymentDataBuilder/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(
}

/**
* @return \Magento\Framework\Api\AttributeInterface|mixed|null
* @return string
*/
protected function getStripeCustomerId() {
$customer = $this->customerRepository->getById($this->adminSession->getCustomerId());
Expand All @@ -58,8 +58,10 @@ protected function getStripeCustomerId() {
$customer->setCustomAttribute('stripe_customer_id', $stripeCustomerId);

$this->customerRepository->save($customer);

return $stripeCustomerId;
}

return $stripeCustomerId;
return $stripeCustomerId->getValue();
}
}

0 comments on commit 94c7574

Please sign in to comment.