Forums / Addon Payment Modules / full state name passing to gspay payment module

full state name passing to gspay payment module

Locked

Views: 1,494

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
14 Oct 2009, 9:01 AM
#1
teflonchest avatar

teflonchest

New Zenner

Join Date:
Aug 2009
Posts:
2
Plugin Contributions:
0

full state name passing to gspay payment module

i'm having problems passing the full state name to my payment module, gspay.

i think its passing the state abbreviation only and the gspay module has full state names in the dropdown menu, so its not automatically filling in the state on the payment page.

where is the code that transfers the state abbreviation to the payment module. id like to change it to transfer the full state name.

in the gspay payment module, heres the code that populates the state name and other payment variables, can i change anything here to grab the full state name? the other variables transfer Ok.

zen_draw_hidden_field('customerFullName',$order->customer[firstname]." ".$order->customer[lastname] ) .
                               zen_draw_hidden_field('customerAddress', $order->customer['street_address']) .
                               zen_draw_hidden_field('customerCity', $order->customer['city']) .
                               zen_draw_hidden_field('customerStateCode', !empty($stateCode) ? $stateCode : 'XX') .
                               zen_draw_hidden_field('customerZip', $order->customer['postcode']) .
                               zen_draw_hidden_field('customerCountry', $order->customer['country']['title']) .
                               zen_draw_hidden_field('customerEmail', $order->customer['email_address']) .
                               zen_draw_hidden_field('customerPhone', $order->customer['telephone']) .

                               zen_draw_hidden_field('customerShippingFullName',$order->delivery[firstname]." ".$order->customer[lastname] ) .
                               zen_draw_hidden_field('customerShippingAddress', $order->delivery['street_address']) .
                               zen_draw_hidden_field('customerShippingCity', $order->delivery['city']) .
                               zen_draw_hidden_field('customerShippingStateCode', !empty($deliveryStateCode) ? $deliveryStateCode: 'XX') .
                               zen_draw_hidden_field('customerShippingZip', $order->delivery['postcode']) .
                               zen_draw_hidden_field('customerShippingCountry', $order->delivery['country']['title']) .
                               zen_draw_hidden_field('customerShippingEmail', $order->delivery['email_address']) .
                               zen_draw_hidden_field('customerShippingPhone', $order->customer['telephone']) .
      				
			       "";
16 Oct 2009, 5:40 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: full state name passing to gspay payment module

Be careful ...

You are using:
$order->customer
$order->delivery

I think you really want to use:
$order->billing
$order->delivery

Did you peek in the order.php class file:
/includes/classes/orders.php

to see the name of the fields used in the 3 sets of arrays for the Customer, Billing and Delivery information? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!