Skip to content

Commit fb65fd7

Browse files
committed
Update reQuery method to use the correct payment handler
1 parent 6b65f57 commit fb65fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/PaymentHandlers/BasePaymentHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ protected static function getPaymentDescription(?Payment $payment): array
232232
public function reQueryUnsuccessfulPayment(Payment $unsuccessfulPayment): ?ReQuery
233233
{
234234
/** @var PaymentHandlerInterface **/
235-
$handler = app()->make(PaymentHandlerInterface::class, [$unsuccessfulPayment]);
235+
$handler = new (PaymentService::getHandlerFqcn($unsuccessfulPayment->payment_processor_name));
236236

237237
$reQueryResponse = $handler->reQuery($unsuccessfulPayment);
238238

0 commit comments

Comments
 (0)