Fix phpcs
This commit is contained in:
parent
b7557db30a
commit
2cd0122d34
@ -68,7 +68,7 @@ else
|
|||||||
$service = 'StripeLive';
|
$service = 'StripeLive';
|
||||||
}
|
}
|
||||||
|
|
||||||
$stripeaccount = $stripe->GetStripeAccount($service);
|
$stripeaccount = $stripe->getStripeAccount($service);
|
||||||
if (empty($stripeaccount))
|
if (empty($stripeaccount))
|
||||||
{
|
{
|
||||||
print $langs->trans('ErrorStripeAccountNotDefined');
|
print $langs->trans('ErrorStripeAccountNotDefined');
|
||||||
|
|||||||
@ -52,12 +52,12 @@ class Stripe extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GetStripeAccount
|
* Return stripe account
|
||||||
*
|
*
|
||||||
* @param string $mode 'StripeTest' or 'StripeLive'
|
* @param string $mode 'StripeTest' or 'StripeLive'
|
||||||
* @return int ???
|
* @return int ???
|
||||||
*/
|
*/
|
||||||
public function GetStripeAccount($mode='StripeTest')
|
public function getStripeAccount($mode='StripeTest')
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -90,12 +90,12 @@ class Stripe extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GetStripeCustomerAccount
|
* getStripeCustomerAccount
|
||||||
*
|
*
|
||||||
* @param int $id ???
|
* @param int $id ???
|
||||||
* @return int ???
|
* @return int ???
|
||||||
*/
|
*/
|
||||||
public function GetStripeCustomerAccount($id)
|
public function getStripeCustomerAccount($id)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -122,13 +122,13 @@ class Stripe extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CustomerStripe
|
* customerStripe
|
||||||
*
|
*
|
||||||
* @param int $id ???
|
* @param int $id ???
|
||||||
* @param string $key ???
|
* @param string $key ???
|
||||||
* @return \Stripe\StripeObject|\Stripe\ApiResource
|
* @return \Stripe\StripeObject|\Stripe\ApiResource
|
||||||
*/
|
*/
|
||||||
public function CustomerStripe($id,$key)
|
public function customerStripe($id,$key)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
if (empty($conf->global->STRIPECONNECT_LIVE)) {
|
if (empty($conf->global->STRIPECONNECT_LIVE)) {
|
||||||
@ -186,7 +186,7 @@ class Stripe extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CreatePaymentStripe
|
* createPaymentStripe
|
||||||
*
|
*
|
||||||
* @param unknown $amount ???
|
* @param unknown $amount ???
|
||||||
* @param unknown $currency ???
|
* @param unknown $currency ???
|
||||||
@ -197,7 +197,7 @@ class Stripe extends CommonObject
|
|||||||
* @param unknown $account ???
|
* @param unknown $account ???
|
||||||
* @return Stripe
|
* @return Stripe
|
||||||
*/
|
*/
|
||||||
public function CreatePaymentStripe($amount, $currency, $origin, $item, $source, $customer, $account)
|
public function createPaymentStripe($amount, $currency, $origin, $item, $source, $customer, $account)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
if (empty($conf->global->STRIPECONNECT_LIVE)) {
|
if (empty($conf->global->STRIPECONNECT_LIVE)) {
|
||||||
@ -299,7 +299,7 @@ class Stripe extends CommonObject
|
|||||||
} elseif ($charge->source->type == 'three_d_secure') {
|
} elseif ($charge->source->type == 'three_d_secure') {
|
||||||
$stripe = new Stripe($this->db);
|
$stripe = new Stripe($this->db);
|
||||||
$src = \Stripe\Source::retrieve("" . $charge->source->three_d_secure->card . "", array(
|
$src = \Stripe\Source::retrieve("" . $charge->source->three_d_secure->card . "", array(
|
||||||
"stripe_account" => $stripe->GetStripeAccount($conf->entity)
|
"stripe_account" => $stripe->getStripeAccount($conf->entity)
|
||||||
));
|
));
|
||||||
$return->message = $src->card->brand . " ****" . $src->card->last4;
|
$return->message = $src->card->brand . " ****" . $src->card->last4;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -62,10 +62,10 @@ if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || emp
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$servie = 'StripeLive';
|
$service = 'StripeLive';
|
||||||
}
|
}
|
||||||
|
|
||||||
$stripeaccount = $stripe->GetStripeAccount($service);
|
$stripeaccount = $stripe->getStripeAccount($service);
|
||||||
if (empty($stripeaccount))
|
if (empty($stripeaccount))
|
||||||
{
|
{
|
||||||
print $langs->trans('ErrorStripeAccountNotDefined');
|
print $langs->trans('ErrorStripeAccountNotDefined');
|
||||||
@ -101,7 +101,7 @@ if (! $rowid && $stripeaccount) {
|
|||||||
|
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
$stripeaccount = $stripe->GetStripeAccount($conf->entity);
|
$stripeaccount = $stripe->getStripeAccount($service);
|
||||||
|
|
||||||
$txn = \Stripe\BalanceTransaction::all(array("limit" => $limit), array("stripe_account" => $stripeaccount));
|
$txn = \Stripe\BalanceTransaction::all(array("limit" => $limit), array("stripe_account" => $stripeaccount));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user