566c566 < index ce845cd..31709e3 100644 --- > index ce845cd..d2c8461 100644 588c588 < @@ -266,9 +267,17 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter --- > @@ -266,9 +267,21 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter 598c598,602 < + if ($payment_type != 'paypal') { --- > + $paypal_payment_types = [ > + 'paypal', > + 'paypal_credit', > + ]; > + if (!in_array($payment_type, $paypal_payment_types)) { 607c611 < @@ -286,13 +295,20 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter --- > @@ -286,13 +299,20 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter 619c623 < + if ($payment_type == 'paypal') { --- > + if (in_array($payment_type, $paypal_payment_types)) { 634c638 < @@ -316,8 +332,12 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter --- > @@ -316,8 +336,12 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter 647c651 < @@ -385,13 +405,21 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter --- > @@ -385,13 +409,25 @@ class HostedFields extends OnsitePaymentGatewayBase implements HostedFieldsInter 657,658c661,665 < - ]; < + if ($payment_type == 'paypal') { --- > + $paypal_payment_types = [ > + 'paypal', > + 'paypal_credit', > ]; > + if (in_array($payment_type, $paypal_payment_types)) {