Skip to content

Commit

Permalink
Remove surcharge on certain methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Nov 18, 2024
1 parent 39d2111 commit 87c5043
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PaymentMethods/Alma.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{
unset($generalFormFields['surcharge']);
unset($generalFormFields['payment_surcharge']);
unset($generalFormFields['fixed_fee']);
unset($generalFormFields['percentage']);
unset($generalFormFields['surcharge_limit']);
unset($generalFormFields['maximum_limit']);
return $generalFormFields;
}
}
6 changes: 6 additions & 0 deletions src/PaymentMethods/Klarna.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{
unset($generalFormFields['surcharge']);
unset($generalFormFields['payment_surcharge']);
unset($generalFormFields['fixed_fee']);
unset($generalFormFields['percentage']);
unset($generalFormFields['surcharge_limit']);
unset($generalFormFields['maximum_limit']);
return $generalFormFields;
}
}
6 changes: 6 additions & 0 deletions src/PaymentMethods/Klarnapaylater.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{
unset($generalFormFields['surcharge']);
unset($generalFormFields['payment_surcharge']);
unset($generalFormFields['fixed_fee']);
unset($generalFormFields['percentage']);
unset($generalFormFields['surcharge_limit']);
unset($generalFormFields['maximum_limit']);
return $generalFormFields;
}
}
6 changes: 6 additions & 0 deletions src/PaymentMethods/Klarnapaynow.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{
unset($generalFormFields['surcharge']);
unset($generalFormFields['payment_surcharge']);
unset($generalFormFields['fixed_fee']);
unset($generalFormFields['percentage']);
unset($generalFormFields['surcharge_limit']);
unset($generalFormFields['maximum_limit']);
return $generalFormFields;
}
}
6 changes: 6 additions & 0 deletions src/PaymentMethods/Klarnasliceit.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{
unset($generalFormFields['surcharge']);
unset($generalFormFields['payment_surcharge']);
unset($generalFormFields['fixed_fee']);
unset($generalFormFields['percentage']);
unset($generalFormFields['surcharge_limit']);
unset($generalFormFields['maximum_limit']);
return $generalFormFields;
}
}
7 changes: 7 additions & 0 deletions src/PaymentMethods/Riverty.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{

unset($generalFormFields['surcharge']);
unset($generalFormFields['payment_surcharge']);
unset($generalFormFields['fixed_fee']);
unset($generalFormFields['percentage']);
unset($generalFormFields['surcharge_limit']);
unset($generalFormFields['maximum_limit']);
return $generalFormFields;
}

Expand Down

0 comments on commit 87c5043

Please sign in to comment.