Skip to content

Commit

Permalink
Merge pull request devinweb#28 from devinweb/analysis-1bpoAN
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
darbaoui authored Mar 30, 2022
2 parents 563947c + 3b05602 commit 0a04878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/LaravelHyperpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function mada()
{
$this->config['entityId'] = config('hyperpay.entityIdMada');
}

/**
* Set the apple pay entityId in the parameters that used to prepare the checkout.
*
Expand All @@ -81,6 +81,7 @@ public function setApplePayEntityId()
{
$this->config['entityId'] = config('hyperpay.entityIdApplePay');
}

/**
* Add billing data to the payment body.
*
Expand Down Expand Up @@ -112,7 +113,7 @@ public function checkout(array $trackable_data, Model $user, $amount, $brand, Re
if (strtolower($this->brand) == 'mada') {
$this->mada();
}

if (strtolower($this->brand) == 'applepay') {
$this->setApplePayEntityId();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Support/HttpParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function getBillingParameters($billing): array
protected function getEntityId($id)
{
$transaction = (new TransactionBuilder())->findByIdOrCheckoutId($id);

$entityId = config('hyperpay.entityId');

if ($transaction->brand === 'mada') {
Expand Down

0 comments on commit 0a04878

Please sign in to comment.