mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for braintree
This commit is contained in:
parent
2ec32a4781
commit
19910d2867
@ -151,6 +151,11 @@ class CreditCard
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if ($this->braintree->company_gateway->getConfigField('merchantAccountId')) {
|
||||||
|
/** https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/php#full-example */
|
||||||
|
$data['merchantAccountId'] = $this->braintree->company_gateway->getConfigField('merchantAccountId');
|
||||||
|
}
|
||||||
|
|
||||||
$response = $this->braintree->gateway->paymentMethod()->create($data);
|
$response = $this->braintree->gateway->paymentMethod()->create($data);
|
||||||
|
|
||||||
if ($response->success) {
|
if ($response->success) {
|
||||||
|
@ -283,9 +283,6 @@ class Statement
|
|||||||
$from = $ranges[0];
|
$from = $ranges[0];
|
||||||
$to = $ranges[1];
|
$to = $ranges[1];
|
||||||
|
|
||||||
nlog("from ".$from->format("Y-m-d"));
|
|
||||||
nlog("to ".$to->format("Y-m-d"));
|
|
||||||
|
|
||||||
$client = Client::where('id', $this->client->id)->first();
|
$client = Client::where('id', $this->client->id)->first();
|
||||||
|
|
||||||
$amount = Invoice::where('company_id', $this->client->company->id)
|
$amount = Invoice::where('company_id', $this->client->company->id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user