Skip to content

Commit cf761ed

Browse files
Send redirect subtype for Riverty installments
ISSUE: CR-SET-45
1 parent ed13193 commit cf761ed

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Handlers/RivertyPaymentTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ protected function getAdyenPaymentRequest(
7474
// flow, and the only one without an Adyen Web component to set the subtype itself - the
7575
// plain redirect component it falls back to sends none.
7676
if (static::class === RivertyInstallmentsPaymentMethodHandler::class) {
77-
$paymentRequest->getPaymentMethod()?->setSubtype('redirect');
77+
$rivertyPaymentMethod = $paymentRequest->getPaymentMethod();
78+
79+
if (!is_null($rivertyPaymentMethod)) {
80+
$rivertyPaymentMethod->setSubtype('redirect');
81+
}
7882
}
7983

8084
if (!$this->rivertyFingerprintParamsProvider->isProfileTrackingEnabled(

0 commit comments

Comments
 (0)