Skip to content

Commit

Permalink
Release 2.0.37
Browse files Browse the repository at this point in the history
  • Loading branch information
edgaraswallee committed Oct 24, 2023
1 parent 4bc545a commit 6f68f6f
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ This repository contains the plentymarkets extension that enables to process pay

## Documentation

* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/plentymarkets/2.0.36/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/plentymarkets/2.0.37/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/wallee-payment/plentymarkets/blob/2.0.36/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/plentymarkets/blob/2.0.37/LICENSE) for more information.
8 changes: 8 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
"defaultValue": "11.3"
}
},
"enable_payment_fetch": {
"type": "checkBox",
"required": false,
"label": "Config.enablePaymentFetch",
"options": {
"defaultValue": true
}
},
"confirmation_invoice": {
"type": "checkBox",
"required": false,
Expand Down
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/plentymarkets/releases/tag/2.0.36/">
<a href="https://github.com/wallee-payment/plentymarkets/releases/tag/2.0.37/">
Source
</a>
</li>
Expand Down
12 changes: 11 additions & 1 deletion meta/documents/changelog_de.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Release Notes for wallee

## v2.0.35 (2023-03-10)
## v2.0.37 (2023-10-24)

### Fixed
- Aktivieren Sie die Konfiguration der Zahlungsmethodenkorrektur, um den Checkout zu beschleunigen

## v2.0.356(2023-09-28)

### Added
- Fügen Sie Debug-Protokolle hinzu, um den Zeitpunkt von API-Aufrufen anzuzeigen

## v2.0.35 (2023-03-09)

### Fixed
- Unnötigen Code entfernt
Expand Down
12 changes: 11 additions & 1 deletion meta/documents/changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Release Notes for wallee

## v2.0.35 (2023-03-101)
## v2.0.37 (2023-10-24)

### Fixed
- Enable configuration of payment method fix to speed up checkout

## v2.0.356(2023-09-28)

### Added
- Add debug logs to indicate timing of api calls

## v2.0.35 (2023-03-09)

### Fixed
- Removed unneeded code
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"namespace": "Wallee",
"type": "payment",
"version": "2.0.36",
"version": "2.0.37",
"license": " Apache License Version 2",
"isClosedSource": false,
"pluginIcon": "icon_plugin_md.png",
Expand Down
1 change: 1 addition & 0 deletions resources/lang/de/Config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ refundSuccessfulStatusLabel=Status ID für erfolgreiche Gutschrift
refundFailedStatusLabel=Status ID für fehlgeschlagene Gutschrift
confirmationInvoiceLabel=Kunden erlauben, Rechnungsdokument herunterzuladen
confirmationPackingSlipLabel=Kunden erlauben, Lieferschein herunterzuladen
enablePaymentFetch=Aktivieren Sie das Abrufen möglicher Zahlungsmethoden
AlipayTab=Alipay
alipayActiveLabel=Aktiv
alipayTitleLabel=Titel
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/Config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ refundSuccessfulStatusLabel=Status ID for successful refunds
refundFailedStatusLabel=Status ID for failed refunds
confirmationInvoiceLabel=Allow customers to download invoice document
confirmationPackingSlipLabel=Allow customers to download packing slip
enablePaymentFetch=Enable Fetching Possible Payment Methods
AlipayTab=Alipay
alipayActiveLabel=Enabled
alipayTitleLabel=Title
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/Config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ refundSuccessfulStatusLabel=Statut ID pour les remboursements réussis
refundFailedStatusLabel=Statut ID pour les remboursements échoués
confirmationInvoiceLabel=Autoriser les clients à télécharger la facture
confirmationPackingSlipLabel=Autoriser les clients à télécharger le bordereau d'expédition
enablePaymentFetch=Activer la récupération des méthodes de paiement possibles
AlipayTab=Alipay
alipayActiveLabel=Activé
alipayTitleLabel=Titre
Expand Down
1 change: 1 addition & 0 deletions resources/lang/it/Config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ refundSuccessfulStatusLabel=ID di stato per i rimborsi andati a buon fine
refundFailedStatusLabel=ID stato per rimborsi non riusciti
confirmationInvoiceLabel=Consenti ai clienti di scaricare la fattura
confirmationPackingSlipLabel=Consenti ai clienti di scaricare il documento di trasporto
enablePaymentFetch=Abilita il recupero dei possibili metodi di pagamento
AlipayTab=Alipay
alipayActiveLabel=Abilitato
alipayTitleLabel=Titolo
Expand Down
26 changes: 15 additions & 11 deletions src/Services/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,18 +255,22 @@ public function executePayment(Order $order, PaymentMethod $paymentMethod): arra

$timingLogs["createPlentyPayment"] = microtime(true) - $time_start;

$hasPossiblePaymentMethods = $this->sdkService->call('hasPossiblePaymentMethods', [
'transactionId' => $transaction['id']
]);
if (! $hasPossiblePaymentMethods) {
return [
'transactionId' => $transaction['id'],
'type' => GetPaymentMethodContent::RETURN_TYPE_ERROR,
'content' => 'The selected payment method is not available.'
];
}
$isFetchPossiblePaymentMethodsEnabled = $this->config->get('wallee.enable_payment_fetch');

$timingLogs["hasPossiblePaymentMethods"] = microtime(true) - $time_start;
if ($isFetchPossiblePaymentMethodsEnabled === "true") {
$hasPossiblePaymentMethods = $this->sdkService->call('hasPossiblePaymentMethods', [
'transactionId' => $transaction['id']
]);
if (! $hasPossiblePaymentMethods) {
return [
'transactionId' => $transaction['id'],
'type' => GetPaymentMethodContent::RETURN_TYPE_ERROR,
'content' => 'The selected payment method is not available.'
];
}

$timingLogs["hasPossiblePaymentMethods"] = microtime(true) - $time_start;
}

$paymentPageUrl = $this->sdkService->call('buildPaymentPageUrl', [
'id' => $transaction['id']
Expand Down

0 comments on commit 6f68f6f

Please sign in to comment.