Merge pull request #9319 from ptibogxiv/patch-41

Fix for new stripe API 2018-09-24
This commit is contained in:
Laurent Destailleur 2018-10-12 19:14:58 +02:00 committed by GitHub
commit 0f3ac26006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,10 +186,16 @@ class Stripe extends CommonObject
{
$dataforcustomer = array(
"email" => $object->email,
"business_vat_id" => $object->tva_intra,
"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']))
);
if ($object->tva_intra!=null)
{
$dataforcustomer["tax_info"] = array(
"tax_id" => $object->tva_intra,
"type" => 'vat');
}
//$a = \Stripe\Stripe::getApiKey();
//var_dump($a);var_dump($key);exit;