Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Controller/Index/Pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public function generateSellixPayment($model, $order)
'return_url' => $model->getCallbackUrl(['order_id' => $order->getId()]),
'webhook' => $model->getWebhookUrl(['order_id' => $order->getId()]),
'email' => $order->getCustomerEmail(),
'value' => number_format($order->getGrandTotal(), 2, '.', '')
'value' => number_format($order->getGrandTotal(), 2, '.', ''),
'origin' => 'MAGENTO_ADOBE'
];

$route = "/v1/payments";
Expand Down
3 changes: 1 addition & 2 deletions Model/Pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
$isAvailable = parent::isAvailable($quote);
if ($isAvailable) {
$api_key = $this->getConfigValue('api_key', $quote ? $quote->getStoreId() : null);
$email = $this->getConfigValue('email', $quote ? $quote->getStoreId() : null);

if (empty($api_key) || empty($email)) {
if (empty($api_key)) {
$isAvailable = false;
}
}
Expand Down
47 changes: 0 additions & 47 deletions Observer/DataAssignObserver.php

This file was deleted.

42 changes: 0 additions & 42 deletions Setup/InstallSchema.php

This file was deleted.

2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ PayPal and regional banking methods with Sellix Pay.</strong>]]></comment>
sortOrder="27" showInDefault="1" showInWebsite="1" showInStore="1">
<label>API Key</label>
<validate>required-entry</validate>
<comment>Please enter your Sellix email.</comment>
<comment>Please enter your Sellix API Key.</comment>
</field>
<field id="url_branded" translate="label" type="select"
sortOrder="28" showInDefault="1" showInWebsite="1" showInStore="1">
Expand Down
6 changes: 0 additions & 6 deletions etc/events.xml

This file was deleted.

Binary file modified view/frontend/web/images/sellix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed view/frontend/web/images/single-black.webp
Binary file not shown.