Skip to content

Commit 6284373

Browse files
committed
chore: bump sdk version
1 parent 12743bc commit 6284373

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# REPLACE_GLOBALLY_WITH_NEXT_VERSION
2+
- Fixes an issue, where PayPal shipping tracking sync retried 429 RATE_LIMIT_REACHED responses too early instead of respecting the Retry-After header.
3+
14
# 10.6.4
25
- Fixes an issue, where net prices could cause the express checkout with shipping callback enabled to fail
36

CHANGELOG_de-DE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# REPLACE_GLOBALLY_WITH_NEXT_VERSION
2+
- Behebt ein Problem, bei dem die PayPal-Versandtracking-Synchronisierung 429 RATE_LIMIT_REACHED-Antworten zu früh erneut verarbeitet hat, anstatt den Retry-After-Header zu berücksichtigen.
3+
14
# 10.6.4
25
- Behebt ein Problem, bei dem Netto-Preise den Express Checkout mit aktivem Versand-Callback fehlschlagen lies
36

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"shopware/core": "~6.7.0@dev",
14-
"shopware/paypal-sdk": "^1.6.3"
14+
"shopware/paypal-sdk": "^1.8.0"
1515
},
1616
"extra": {
1717
"shopware-plugin-class": "Swag\\PayPal\\SwagPayPal",

src/RestApi/Exception/PayPalApiException.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Shopware\Core\Framework\Log\Package;
1212
use Shopware\PayPalSDK\Exception\ApiException;
1313
use Shopware\PayPalSDK\Exception\ErrorApiException;
14+
use Shopware\PayPalSDK\Exception\RetryAfterApiException;
1415
use Symfony\Component\HttpFoundation\Response;
1516

1617
#[Package('checkout')]
@@ -120,12 +121,10 @@ protected static function extractMessageAndIssue(ApiException $e): array
120121

121122
private static function extractRetryAt(ApiException $e): ?\DateTimeImmutable
122123
{
123-
if (!\method_exists($e, 'getRetryAt')) {
124+
if (!$e instanceof RetryAfterApiException) {
124125
return null;
125126
}
126127

127-
$retryAt = $e->getRetryAt();
128-
129-
return $retryAt instanceof \DateTimeImmutable ? $retryAt : null;
128+
return $e->getRetryAt();
130129
}
131130
}

0 commit comments

Comments
 (0)