Updates for braintree level 2 data
This commit is contained in:
parent
b0ed7e1ca6
commit
51d57bda5d
|
|
@ -151,8 +151,8 @@ class ACH implements MethodInterface, LivewireMethodInterface
|
||||||
'options' => [
|
'options' => [
|
||||||
'submitForSettlement' => true,
|
'submitForSettlement' => true,
|
||||||
],
|
],
|
||||||
'tax_amount' => $total_taxes,
|
'taxAmount' => $total_taxes,
|
||||||
'purchase_order_number' => $po_number,
|
'purchaseOrderNumber' => substr($po_number, 0, 16),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($result->success) {
|
if ($result->success) {
|
||||||
|
|
|
||||||
|
|
@ -129,8 +129,8 @@ class CreditCard implements LivewireMethodInterface
|
||||||
'postalCode' => $this->braintree->client->postal_code ?: '',
|
'postalCode' => $this->braintree->client->postal_code ?: '',
|
||||||
'countryCodeAlpha2' => $this->braintree->client->country ? $this->braintree->client->country->iso_3166_2 : 'US',
|
'countryCodeAlpha2' => $this->braintree->client->country ? $this->braintree->client->country->iso_3166_2 : 'US',
|
||||||
],
|
],
|
||||||
'tax_amount' => $total_taxes,
|
'taxAmount' => $total_taxes,
|
||||||
'purchase_order_number' => $po_number,
|
'purchaseOrderNumber' => substr($po_number, 0, 16),
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($this->braintree->company_gateway->getConfigField('merchantAccountId')) {
|
if ($this->braintree->company_gateway->getConfigField('merchantAccountId')) {
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,8 @@ class PayPal implements LivewireMethodInterface
|
||||||
'description' => 'Meaningful description.',
|
'description' => 'Meaningful description.',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'tax_amount' => $total_taxes,
|
'taxAmount' => $total_taxes,
|
||||||
'purchase_order_number' => $po_number,
|
'purchaseOrderNumber' => substr($po_number, 0, 16),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($result->success) {
|
if ($result->success) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue