Skip to content

Commit

Permalink
Update core. Fix bug on checkout page for educational popup.
Browse files Browse the repository at this point in the history
SEPM-24
  • Loading branch information
MarijaIv committed Jan 10, 2024
1 parent 2385caa commit 5116b10
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
6 changes: 5 additions & 1 deletion Services/BusinessLogic/OrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,15 @@ public function getStatisticsOrderIds(int $page, int $limit = 5000): array
}

/**
* @param Webhook $webhook
* @param string $status
* @param int|null $reasonCode
* @param string|null $message
* @inheritdoc
*
* @throws Exception
*/
public function updateStatus(Webhook $webhook, string $status): void
public function updateStatus(Webhook $webhook, string $status, ?int $reasonCode = null, ?string $message = null): void
{
switch ($status) {
case Order::STATE_PENDING_PAYMENT:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"minimum-stability": "stable",
"require": {
"php": ">=7.2",
"sequra/integration-core": "dev-CR-SET-04-01",
"sequra/integration-core": "1.0.11",
"ext-json": "*"
},
"repositories": [
Expand Down
18 changes: 8 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ define([
).done(function () {
if (window.checkoutConfig.payment.sequra_payment.showSeQuraCheckoutAsHostedPage) {
const hppPageUrl = new URL(
window.checkoutConfig.payment.sequra_payment.sequraCheckoutHostedPage
window.checkoutConfig.payment.sequra_payment.sequraCheckoutHostedPage
);

hppPageUrl.searchParams.append("ssequra_product", data.additional_data.ssequra_product);
hppPageUrl.searchParams.append(
"sequra_campaign", data.additional_data.sequra_campaign || ''
"sequra_campaign", data.additional_data.sequra_campaign || ''
);

window.location.replace(hppPageUrl.href);
Expand Down Expand Up @@ -238,10 +238,14 @@ define([

loadSeQuraScript: function () {
if (typeof Sequra === "undefined") {
let products = [];
window.checkoutConfig.payment.sequra_payment.widget_settings.products.forEach((product) => {
products.push(product.id);
});
var sequraConfigParams = {
merchant: window.checkoutConfig.payment.sequra_payment.widget_settings.merchant,
assetKey: window.checkoutConfig.payment.sequra_payment.widget_settings.assetKey,
products: window.checkoutConfig.payment.sequra_payment.widget_settings.products,
products: products,
scriptUri: window.checkoutConfig.payment.sequra_payment.widget_settings.scriptUri,
decimalSeparator: window.checkoutConfig.payment.sequra_payment.widget_settings.decimalSeparator,
thousandSeparator: window.checkoutConfig.payment.sequra_payment.widget_settings.thousandSeparator,
Expand Down

0 comments on commit 5116b10

Please sign in to comment.