Merge branch 'ticket-payboxAgreement' into develop
This commit is contained in:
commit
97aa768b07
@ -269,16 +269,16 @@ class Paybox extends PaymentModule
|
||||
* Save Information de Paiement Paybox (retour de la banque)
|
||||
* @param array $values Tableau de retour Paybox
|
||||
**/
|
||||
public function saveInformationPaiement($values,$id_customer=0,$direct_plus=false) {
|
||||
public function saveInformationPaiement($values,$direct_plus=false) {
|
||||
|
||||
mail('marion@antadis.com', 'Transaction value', http_build_query($values,'',', ')); // dev
|
||||
|
||||
if(isset($values['u'])
|
||||
|| !empty($values['u'])
|
||||
&& (int)$id_customer!=0
|
||||
&& !$direct_plus
|
||||
) {
|
||||
$this->saveInformationCB($values,$id_customer);
|
||||
$cart = new Cart((int)$values["r"]);
|
||||
$this->saveInformationCB($values,$cart->id_customer);
|
||||
}
|
||||
|
||||
$sql_cart = 'SELECT `num_transaction`
|
||||
|
@ -89,7 +89,7 @@ if (!$cart->id)
|
||||
|
||||
if ($id_order = (int)Order::getOrderByCartId($cart->id))
|
||||
{
|
||||
$paybox->saveInformationPaiement($values,(int)$cart->id_customer);
|
||||
$paybox->saveInformationPaiement($values);
|
||||
|
||||
if (empty($error))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user