Parcourir la source

Merge branch 'develop'

master
Guillaume Bourgeois il y a 3 mois
Parent
révision
269cc51607
1 fichiers modifiés avec 12 ajouts et 6 suppressions
  1. +12
    -6
      common/components/Tiller/TillerClientV2.php

+ 12
- 6
common/components/Tiller/TillerClientV2.php Voir le fichier

@@ -82,11 +82,17 @@ class TillerClientV2 implements TillerClientInterface

public function postOrder($params)
{
return $this->curl->setPostParams(
array_merge([
'provider_token' => $this->providerToken,
'restaurant_token' => $this->restaurantToken,
], $params)
)->post($this->urlApi . 'orders');
$params = array_merge([
'provider_token' => $this->providerToken,
'restaurant_token' => $this->restaurantToken,
], $params);

\Yii::$app->mailerService->sendAdmin('Log post order SumUp', 'contact', [
'name' => 'Souke',
'email' => 'contact@souke.fr',
'content' => json_encode($params)
]);

return $this->curl->setPostParams($params)->post($this->urlApi . 'orders');
}
}

Chargement…
Annuler
Enregistrer