Skip to content

Commit

Permalink
update Riverty name
Browse files Browse the repository at this point in the history
  • Loading branch information
vegimcarkaxhija committed Sep 4, 2024
1 parent dd79430 commit 2c25ca5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Repository/RawPaymentMethodRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private function getPaymentMethodsData()
['name' => 'creditcard', 'label' => 'Cards', 'icon' => 'Creditcards.svg', 'template' => 'payment_creditcard.tpl', 'is_payment_method' => '1'],
['name' => 'sofortueberweisung', 'label' => 'Sofortbanking', 'icon' => 'Sofort.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'belfius', 'label' => 'Belfius', 'icon' => 'Belfius.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'afterpay', 'label' => 'Riverty | AfterPay', 'icon' => 'AfterPay.svg', 'template' => 'payment_afterpay.tpl', 'is_payment_method' => '1'],
['name' => 'afterpay', 'label' => 'Riverty', 'icon' => 'AfterPay.svg', 'template' => 'payment_afterpay.tpl', 'is_payment_method' => '1'],
['name' => 'klarna', 'label' => 'Klarna', 'icon' => 'Klarna.svg', 'template' => 'payment_klarna.tpl', 'is_payment_method' => '1'],
['name' => 'applepay', 'label' => 'Apple Pay', 'icon' => 'ApplePay.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'in3', 'label' => 'In3', 'icon' => 'In3.svg', 'template' => 'payment_in3.tpl', 'is_payment_method' => '1'],
Expand Down
3 changes: 3 additions & 0 deletions upgrade/upgrade-4.4.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ function upgrade_module_4_4_0($object)

$insertQuery = 'INSERT INTO ' . _DB_PREFIX_ . 'bk_payment_methods (' . implode(', ', $keys) . ') VALUES ("' . implode('", "', $values) . '")';
Db::getInstance()->execute($insertQuery);

Db::getInstance()->execute('UPDATE ' . _DB_PREFIX_ . 'bk_payment_methods SET label = "Riverty" WHERE name = "afterpay"');

return true;
}
4 changes: 2 additions & 2 deletions views/templates/hook/payment_afterpay.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{l s='Invalid shipping address, cannot find house number' mod='buckaroo3'}
</div>
{/if}
{l s='Please provide additional data for Riverty | AfterPay.' mod='buckaroo3'}<br/><br/>
{l s='Please provide additional data for Riverty.' mod='buckaroo3'}<br/><br/>
<div class="row row-padding">
<div class="col-sm-5">
<label for="phone_afterpay_billing_digi"
Expand Down Expand Up @@ -147,7 +147,7 @@
<a href="https://www.afterpay.nl/nl/klantenservice/betalingsvoorwaarden/"
target="_blank"
style="text-decoration: underline">
{l s='Ik accepteer de algemene voorwaarden van Riverty | AfterPay.' mod='buckaroo3'}
{l s='Ik accepteer de algemene voorwaarden van Riverty.' mod='buckaroo3'}
</a>
</label>
</div>
Expand Down

0 comments on commit 2c25ca5

Please sign in to comment.