mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:24:31 -04:00
Fixes for auth.net
This commit is contained in:
parent
d9c6054c78
commit
c81bd30d05
@ -164,13 +164,13 @@ class AuthorizePaymentMethod
|
|||||||
if ($contact) {
|
if ($contact) {
|
||||||
// Create the Bill To info for new payment type
|
// Create the Bill To info for new payment type
|
||||||
$billto = new CustomerAddressType();
|
$billto = new CustomerAddressType();
|
||||||
$billto->setFirstName(substr(0,50,$contact->present()->first_name()));
|
$billto->setFirstName(substr($contact->present()->first_name(),0,50));
|
||||||
$billto->setLastName(substr(0,50,$contact->present()->last_name()));
|
$billto->setLastName(substr($contact->present()->last_name(),0,50));
|
||||||
$billto->setCompany(substr(0,50,$this->authorize->client->present()->name()));
|
$billto->setCompany(substr($this->authorize->client->present()->name(),0,50));
|
||||||
$billto->setAddress(substr(0,60,$this->authorize->client->address1));
|
$billto->setAddress(substr($this->authorize->client->address1,0,60));
|
||||||
$billto->setCity(substr(0,40,$this->authorize->client->city));
|
$billto->setCity(substr($this->authorize->client->city,0,40));
|
||||||
$billto->setState(substr(0,40,$this->authorize->client->state));
|
$billto->setState(substr($this->authorize->client->state,0,40));
|
||||||
$billto->setZip(substr(0,20,$this->authorize->client->postal_code));
|
$billto->setZip(substr($this->authorize->client->postal_code,0,20));
|
||||||
|
|
||||||
if ($this->authorize->client->country_id) {
|
if ($this->authorize->client->country_id) {
|
||||||
$billto->setCountry($this->authorize->client->country->name);
|
$billto->setCountry($this->authorize->client->country->name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user