I have looked everywhere and cannot find a solution. I have studied the class code over and over to no avail.
Here is what I have:
Now this code works the way I need, in the "process payment" area of my gateway, however I need to load and assign these sooner. I need these to load in the "payment fields" area. Either these or a similar variable from another class.$amount = $order->order_total;
$custid = $order->user_id;
$bfname = $order->billing_first_name;
$blname = $order->billing_last_name;
$baddr1 = $order->billing_address_1;
$bcity = $order->billing_city;
$bstate = $order->billing_state;
$bzip = $order->billing_postcode;
$bcountry = $order->billing_country;
$bemail = $order->billing_email;
$order->billing_phone = str_replace(array('(', '-', ' ', ')'), '', $order->billing_phone);
$phone_args = array(
'PHONE_AREA' => substr($order->billing_phone,0,3),
'PHONE_PREF' => substr($order->billing_phone,3,3),
'PHONE_SUFF' => substr($order->billing_phone,6,4),
);
$phone_area = substr($order->billing_phone,0,3);
$phone_pref = substr($order->billing_phone,3,3);
$phone_suff = substr($order->billing_phone,6,4);
$sfname = $order->shipping_first_name;
$slname = $order->shipping_last_name;
$saddr1 = $order->shipping_address_1;
$scity = $order->shipping_city;
$sstate = $order->shipping_state;
$szip = $order->shipping_postcode;
$scountry = $order->shipping_country;
Now I was able to get the top 2 working in the "payment fields" area like this:
But I cannot get the rest to work or find a comparable method.$amount = $woocommerce->cart->total;
$custid = get_current_user_id();
The reason I need these to load like this is because I am writing an Inline Frame Gateway. I need these values to load early to construct the url for the iframe and pre-populate the fields in the iframe.
Website : insidetopic.com
Any ideas or suggestions.
Thanks
Jason Seabolt