Fix for new stripe API 2018-08-23
Fix break of change API
This commit is contained in:
parent
50d50c2e10
commit
90de2698c3
@ -166,7 +166,10 @@ class Stripe extends CommonObject
|
||||
{
|
||||
$dataforcustomer = array(
|
||||
"email" => $object->email,
|
||||
"business_vat_id" => $object->tva_intra,
|
||||
"tax_info" => array(
|
||||
"tax_id" => $object->tva_intra ? $object->tva_intra : null, // We force data to "null" if empty as expected by Stripe
|
||||
"type" => 'vat',
|
||||
),
|
||||
"description" => $object->name,
|
||||
"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