Doc
This commit is contained in:
parent
bc9859c7bd
commit
36ccc52554
@ -202,8 +202,8 @@ class InterfaceStripe extends DolibarrTriggers
|
|||||||
$this->db->query($sql);
|
$this->db->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If payment mode is linked to Stripee, we update/delete Stripe too
|
// If payment mode is linked to Stripe, we update/delete Stripe too
|
||||||
if ($action == 'COMPANYPAYMENTMODE_MODIFY' && $object->type == 'card') {
|
if ($action == 'COMPANYPAYMENTMODE_CREATE' && $object->type == 'card') {
|
||||||
// For creation of credit card, we do not create in Stripe automatically
|
// For creation of credit card, we do not create in Stripe automatically
|
||||||
}
|
}
|
||||||
if ($action == 'COMPANYPAYMENTMODE_MODIFY' && $object->type == 'card') {
|
if ($action == 'COMPANYPAYMENTMODE_MODIFY' && $object->type == 'card') {
|
||||||
@ -222,6 +222,7 @@ class InterfaceStripe extends DolibarrTriggers
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($customer) {
|
if ($customer) {
|
||||||
|
dol_syslog("We got the customer, so now we update the credit card", LOG_DEBUG);
|
||||||
$card = $stripe->cardStripe($customer, $object, $stripeacc, $servicestatus);
|
$card = $stripe->cardStripe($customer, $object, $stripeacc, $servicestatus);
|
||||||
if ($card) {
|
if ($card) {
|
||||||
$card->metadata = array('dol_id'=>$object->id, 'dol_version'=>DOL_VERSION, 'dol_entity'=>$conf->entity, 'ipaddress'=>(empty($_SERVER['REMOTE_ADDR']) ? '' : $_SERVER['REMOTE_ADDR']));
|
$card->metadata = array('dol_id'=>$object->id, 'dol_version'=>DOL_VERSION, 'dol_entity'=>$conf->entity, 'ipaddress'=>(empty($_SERVER['REMOTE_ADDR']) ? '' : $_SERVER['REMOTE_ADDR']));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user