function _uc_authorize_cim_xml_billto in Ubercart 8.4
Same name and namespace in other branches
- 5 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorize_cim_xml_billto()
- 6.2 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorize_cim_xml_billto()
- 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorize_cim_xml_billto()
Maps an order's billing information to an array for later XML conversion.
1 call to _uc_authorize_cim_xml_billto()
- _uc_authorizenet_cim_profile_create_request in payment/
uc_authorizenet/ uc_authorizenet.module - Helper to create the CIM profile creation request.
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 232 - Processes payments using Authorize.net. Supports AIM and ARB.
Code
function _uc_authorize_cim_xml_billto(OrderInterface $order) {
return [
'firstName' => substr($order->billing_first_name, 0, 50),
'lastName' => substr($order->billing_last_name, 0, 50),
'company' => substr($order->billing_company, 0, 50),
'address' => substr($order->billing_street1, 0, 60),
'city' => substr($order->billing_city, 0, 40),
'state' => substr($order->billing_zone, 0, 2),
'zip' => substr($order->billing_postal_code, 0, 20),
'country' => $order->billing_country,
'phoneNumber' => substr($order->billing_phone, 0, 25),
];
}