diff --git a/includes/rave-shortcode.php b/includes/rave-shortcode.php index dec58a1..a656e64 100644 --- a/includes/rave-shortcode.php +++ b/includes/rave-shortcode.php @@ -55,6 +55,8 @@ public function pay_button_shortcode( $attr, $content="" ) { $btn_text = empty( $content ) ? $this->pay_button_text() : $content; $email = $this->use_current_user_email( $attr ) ? wp_get_current_user()->user_email : ''; + $fname = wp_get_current_user()->user_firstname; + $lname = wp_get_current_user()->user_lastname; if (!empty($this->get_logo_url($attr))) { $attr['logo'] = $this->get_logo_url($attr); } @@ -63,7 +65,10 @@ public function pay_button_shortcode( $attr, $content="" ) { $atts = shortcode_atts( array( 'amount' => '', 'custom_currency' => [], - 'email' => $email, + 'firstname' => $fname, + 'lastname' => $lname, + 'phone' => '', + 'email' => $email, 'country' => $admin_settings->get_option_value('country'), 'currency' => $admin_settings->get_option_value('currency') ), $attr );