mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Authorize.net
This commit is contained in:
parent
d6a8ef8de4
commit
ef209741d6
@ -132,10 +132,10 @@ class AuthorizePaymentMethod
|
||||
public function buildPaymentMethod($payment_profile)
|
||||
{
|
||||
$payment_meta = new \stdClass;
|
||||
$payment_meta->exp_month = $stripe_payment_method_obj['card']['exp_month'];
|
||||
$payment_meta->exp_year = $stripe_payment_method_obj['card']['exp_year'];
|
||||
$payment_meta->brand = $stripe_payment_method_obj['card']['brand'];
|
||||
$payment_meta->last4 = $stripe_payment_method_obj['card']['last4'];
|
||||
$payment_meta->exp_month = 'xx';
|
||||
$payment_meta->exp_year = 'xx';
|
||||
$payment_meta->brand = $payment_profile->getCardType();
|
||||
$payment_meta->last4 = $payment_profile->getCardNumber();
|
||||
$payment_meta->type = $this->payment_method;
|
||||
|
||||
return $payment_meta;
|
||||
@ -170,7 +170,10 @@ class AuthorizePaymentMethod
|
||||
$billto->setCity($this->client->city);
|
||||
$billto->setState($this->client->state);
|
||||
$billto->setZip($this->client->postal_code);
|
||||
$billto->setCountry("USA");
|
||||
|
||||
if($this->client->country_id)
|
||||
$billto->setCountry($this->client->country->name);
|
||||
|
||||
$billto->setPhoneNumber($this->client->phone);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user