From ba94325dd83a58ee28367360d1ab6bfe9d621d76 Mon Sep 17 00:00:00 2001 From: vaibhav_s Date: Mon, 14 Oct 2024 10:22:09 +0530 Subject: [PATCH] Issue #228766 fix: ccAvenue: Billing Details >> Name and phone value does not get autofilled --- code/plugins/ccavenue/ccavenue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/plugins/ccavenue/ccavenue.php b/code/plugins/ccavenue/ccavenue.php index 8e3e31a..a890f7e 100644 --- a/code/plugins/ccavenue/ccavenue.php +++ b/code/plugins/ccavenue/ccavenue.php @@ -176,13 +176,13 @@ public function onTP_GetHTML($vars) // Notify URL set for notify url parameter of payment gateway $gatewaydata['notify_url'] = $vars->notify_url; - $gatewaydata['billing_name'] = $vars->userInfo['firstname'] . ' ' . $vars->userInfo['lastname']; + $gatewaydata['billing_name'] = $vars->user_firstname . ' ' . $vars->user_lastname; $gatewaydata['billing_address'] = $vars->userInfo['add_line1']; $gatewaydata['billing_city'] = $vars->userInfo['city']; $gatewaydata['billing_state'] = $vars->userInfo['state_code']; $gatewaydata['billing_zip'] = $vars->userInfo['zipcode']; $gatewaydata['billing_country'] = $vars->userInfo['country_code']; - $gatewaydata['billing_tel'] = $vars->phone; + $gatewaydata['billing_tel'] = $vars->userInfo['phone']; $gatewaydata['billing_email'] = $vars->user_email; $gatewaydata['currency'] = $vars->currency_code;