public function paymentDetailsFromClient()
{
$invoice = $this->invoice();
$client = $this->client();
$contact = $this->invitation->contact ?: $client->contacts()->first();
return ['email' => $contact->email, 'company' => $client->getDisplayName(), 'firstName' => $contact->first_name, 'lastName' => $contact->last_name, 'billingAddress1' => $client->address1, 'billingAddress2' => $client->address2, 'billingCity' => $client->city, 'billingPostcode' => $client->postal_code, 'billingState' => $client->state, 'billingCountry' => $client->country ? $client->country->iso_3166_2 : '', 'billingPhone' => $contact->phone, 'shippingAddress1' => $client->address1, 'shippingAddress2' => $client->address2, 'shippingCity' => $client->city, 'shippingPostcode' => $client->postal_code, 'shippingState' => $client->state, 'shippingCountry' => $client->country ? $client->country->iso_3166_2 : '', 'shippingPhone' => $contact->phone];
}