Merge pull request #9319 from ptibogxiv/patch-41
Fix for new stripe API 2018-09-24
This commit is contained in:
commit
0f3ac26006
@ -186,10 +186,16 @@ class Stripe extends CommonObject
|
|||||||
{
|
{
|
||||||
$dataforcustomer = array(
|
$dataforcustomer = array(
|
||||||
"email" => $object->email,
|
"email" => $object->email,
|
||||||
"business_vat_id" => $object->tva_intra,
|
|
||||||
"description" => $object->name,
|
"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']))
|
"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();
|
//$a = \Stripe\Stripe::getApiKey();
|
||||||
//var_dump($a);var_dump($key);exit;
|
//var_dump($a);var_dump($key);exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user