Skip to content

Commit

Permalink
Fix url provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Nov 11, 2024
1 parent 0895fbf commit 4fedfe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Provider/AfterUrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public function __construct(

public function getUrl(PaymentRequestInterface $paymentRequest, string $type): string
{
$payload = $paymentRequest->getPayload();
Assert::isArray($payload, 'The payment request payload must be an array.');
$responseData = $paymentRequest->getResponseData();
Assert::isArray($responseData, 'The payment request responseData must be an array.');

return $payload[$type] ?? $this->defaultAfterPayUrlProvider->getUrl($paymentRequest, $type);
return $responseData[$type] ?? $this->defaultAfterPayUrlProvider->getUrl($paymentRequest, $type);
}
}

0 comments on commit 4fedfe3

Please sign in to comment.