diff --git a/src/Util/PaymentMethod.php b/src/Util/PaymentMethod.php index fe9bac7..e9ef49b 100644 --- a/src/Util/PaymentMethod.php +++ b/src/Util/PaymentMethod.php @@ -82,15 +82,15 @@ public function __construct(IsotopePayment $payment) } /** - * @param IsotopePayment $payment + * @param IsotopePayment $paymentMethod * * @param string $redirectUrl * * @return PaymentMethod */ - public static function createForPaymentMethod(IsotopePayment $payment, string $redirectUrl): PaymentMethod + public static function createForPaymentMethod(IsotopePayment $paymentMethod, string $redirectUrl): PaymentMethod { - $payment = new self($payment); + $payment = new self($paymentMethod); $payment->redirect_url = $redirectUrl;