length of record for auth.net

This commit is contained in:
David Bomba 2022-03-17 08:52:14 +11:00
parent 78474bc5cd
commit b261e9fa95
2 changed files with 3 additions and 3 deletions

View File

@ -51,8 +51,8 @@ class ChargePaymentProfile
$description = "Invoices: {$invoice_numbers} for {$amount} for client {$this->authorize->client->present()->name()}"; $description = "Invoices: {$invoice_numbers} for {$amount} for client {$this->authorize->client->present()->name()}";
$order = new OrderType(); $order = new OrderType();
$order->setInvoiceNumber($invoice_numbers); $order->setInvoiceNumber(substr($invoice_numbers,0,19));
$order->setDescription($description); $order->setDescription(substr($description,0,255));
$transactionRequestType = new TransactionRequestType(); $transactionRequestType = new TransactionRequestType();
$transactionRequestType->setTransactionType('authCaptureTransaction'); $transactionRequestType->setTransactionType('authCaptureTransaction');

View File

@ -169,7 +169,7 @@ class StripePaymentDriver extends BaseDriver
&& $this->client->currency() && $this->client->currency()
&& ($this->client->currency()->code == 'EUR') && ($this->client->currency()->code == 'EUR')
&& isset($this->client->country) && isset($this->client->country)
&& in_array($this->client->country->iso_3166_3, ['AUS', 'DNK', 'DEU', 'ITA', 'LUX', 'NOR', 'SVN', 'GBR', 'EST', 'GRC', 'JPN', 'PRT', 'ESP', 'USA', 'BEL', 'FIN'])) { // TODO: More has to be added https://stripe.com/docs/payments/sepa-debit && in_array($this->client->country->iso_3166_3, ['AUS', 'FRA','DNK', 'DEU', 'ITA', 'LUX', 'NOR', 'SVN', 'GBR', 'EST', 'GRC', 'JPN', 'PRT', 'ESP', 'USA', 'BEL', 'FIN'])) { // TODO: More has to be added https://stripe.com/docs/payments/sepa-debit
$types[] = GatewayType::SEPA; $types[] = GatewayType::SEPA;
} }