mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
a4f285a2f3
@ -54,4 +54,4 @@ PHANTOMJS_SECRET=secret
|
|||||||
UPDATE_SECRET=secret
|
UPDATE_SECRET=secret
|
||||||
|
|
||||||
COMPOSER_AUTH='{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
|
COMPOSER_AUTH='{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
|
||||||
SENTRY_LARAVEL_DSN=https://cc7e8e2c678041689e53e409b7dba236@sentry.invoicing.co/5
|
SENTRY_LARAVEL_DSN=https://32f01ea994744fa08a0f688769cef78a@sentry.invoicing.co/9
|
@ -153,7 +153,7 @@ class CreditCard
|
|||||||
|
|
||||||
if ($this->braintree->company_gateway->getConfigField('merchantAccountId')) {
|
if ($this->braintree->company_gateway->getConfigField('merchantAccountId')) {
|
||||||
/** https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/php#full-example */
|
/** https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/php#full-example */
|
||||||
$data['merchantAccountId'] = $this->braintree->company_gateway->getConfigField('merchantAccountId');
|
$data['verificationMerchantAccountId'] = $this->braintree->company_gateway->getConfigField('merchantAccountId');
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = $this->braintree->gateway->paymentMethod()->create($data);
|
$response = $this->braintree->gateway->paymentMethod()->create($data);
|
||||||
|
@ -61,6 +61,9 @@ class Number
|
|||||||
// convert "," to "."
|
// convert "," to "."
|
||||||
$s = str_replace(',', '.', $value);
|
$s = str_replace(',', '.', $value);
|
||||||
|
|
||||||
|
if($value < 1)
|
||||||
|
return (float)$s;
|
||||||
|
|
||||||
// remove everything except numbers and dot "."
|
// remove everything except numbers and dot "."
|
||||||
$s = preg_replace("/[^0-9\.]/", '', $s);
|
$s = preg_replace("/[^0-9\.]/", '', $s);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user