mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add transaction reference to eWay response
This commit is contained in:
parent
36d957f768
commit
44719ac996
@ -43,6 +43,8 @@ class Token
|
|||||||
|
|
||||||
$amount = array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total;
|
$amount = array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total;
|
||||||
|
|
||||||
|
$this->eway_driver->payment_hash = $payment_hash;
|
||||||
|
|
||||||
$transaction = [
|
$transaction = [
|
||||||
'Customer' => [
|
'Customer' => [
|
||||||
'TokenCustomerID' => $cgt->token,
|
'TokenCustomerID' => $cgt->token,
|
||||||
@ -74,7 +76,7 @@ class Token
|
|||||||
$data = [
|
$data = [
|
||||||
'gateway_type_id' => GatewayType::CREDIT_CARD,
|
'gateway_type_id' => GatewayType::CREDIT_CARD,
|
||||||
'payment_type' => PaymentType::CREDIT_CARD_OTHER,
|
'payment_type' => PaymentType::CREDIT_CARD_OTHER,
|
||||||
'transaction_reference' => $response->Customer->Reference,
|
'transaction_reference' => $response->TransactionID,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -167,12 +167,6 @@ class EwayPaymentDriver extends BaseDriver
|
|||||||
$fields[] = ['name' => 'client_name', 'label' => ctrans('texts.client_name'), 'type' => 'text', 'validation' => 'required'];
|
$fields[] = ['name' => 'client_name', 'label' => ctrans('texts.client_name'), 'type' => 'text', 'validation' => 'required'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ($this->company_gateway->require_contact_name) {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if ($this->company_gateway->require_contact_email) {
|
|
||||||
// }
|
|
||||||
|
|
||||||
if ($this->company_gateway->require_client_phone) {
|
if ($this->company_gateway->require_client_phone) {
|
||||||
$fields[] = ['name' => 'client_phone', 'label' => ctrans('texts.client_phone'), 'type' => 'tel', 'validation' => 'required'];
|
$fields[] = ['name' => 'client_phone', 'label' => ctrans('texts.client_phone'), 'type' => 'tel', 'validation' => 'required'];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user