Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: dev/setup/codesniffer/ruleset.xml
This commit is contained in:
commit
4946de9533
@ -87,9 +87,9 @@ if (! empty($conf->stripe->enabled))
|
|||||||
$service = 'StripeLive';
|
$service = 'StripeLive';
|
||||||
$servicestatus = 0;
|
$servicestatus = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$stripe=new Stripe($db);
|
$stripe=new Stripe($db);
|
||||||
$stripeacc = $stripe->getStripeAccount($service); // Stripe OAuth connect account of dolibarr user (no network access here)
|
$stripeacc = $stripe->getStripeAccount($service); // Stripe OAuth connect account of dolibarr user (no network access here)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of paiements. Note that conf->hooks_modules contains array array
|
// Initialize technical object to manage hooks of paiements. Note that conf->hooks_modules contains array array
|
||||||
@ -306,14 +306,14 @@ if (empty($reshook))
|
|||||||
$paiementcode ="CB";
|
$paiementcode ="CB";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$societe = new Societe($db);
|
||||||
$societe->fetch($facture->socid);
|
$societe->fetch($facture->socid);
|
||||||
dol_syslog("Create charge", LOG_DEBUG, 0, '_stripe');
|
dol_syslog("Create charge", LOG_DEBUG, 0, '_stripe');
|
||||||
|
|
||||||
$stripecu = $stripe->getStripeCustomerAccount($societe->id, $servicestatus); // Get thirdparty cu_...
|
$stripecu = $stripe->getStripeCustomerAccount($societe->id, $servicestatus); // Get thirdparty cu_...
|
||||||
|
|
||||||
$charge=$stripe->createPaymentStripe($stripeamount,$facture->multicurrency_code,"invoice",$facid,$source,$stripecu,$stripeacc,$servicestatus);
|
$charge=$stripe->createPaymentStripe($stripeamount,$facture->multicurrency_code,"invoice",$facid,$source,$stripecu,$stripeacc,$servicestatus);
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ if (empty($reshook))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$loc = DOL_URL_ROOT.'/stripe/payment.php?facid='.$facid.'&action=create&error='.$charge->message;
|
$loc = DOL_URL_ROOT.'/stripe/payment.php?facid='.$facid.'&action=create&error='.$charge->message;
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user