Updates for braintree level 2 data

This commit is contained in:
David Bomba 2025-04-19 12:14:34 +10:00
parent b0ed7e1ca6
commit 51d57bda5d
3 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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')) {

View File

@ -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) {