mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
25 lines
725 B
PHP
25 lines
725 B
PHP
<?php
|
|
|
|
namespace App\Ninja\PaymentDrivers;
|
|
|
|
class AuthorizeNetAIMPaymentDriver extends BasePaymentDriver
|
|
{
|
|
protected $transactionReferenceParam = 'refId';
|
|
|
|
protected function paymentDetails($paymentMethod = false)
|
|
{
|
|
$data = parent::paymentDetails();
|
|
$data['solutionId'] = $this->accountGateway->getConfigField('testMode') ? 'AAA100303' : 'AAA172036';
|
|
$data['invoiceNumber'] = $this->invoice()->invoice_number;
|
|
|
|
return $data;
|
|
}
|
|
|
|
public function createPayment($ref = false, $paymentMethod = null)
|
|
{
|
|
$ref = $this->purchaseResponse['transactionResponse']['transId'] ?: $this->purchaseResponse['refId'];
|
|
|
|
parent::createPayment($ref, $paymentMethod);
|
|
}
|
|
}
|