diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index d545a3e1177..ef1c169c768 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -472,7 +472,7 @@ if (empty($reshook)) $_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid', 'int'), 'alpha'); $_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid', 'int'), 'alpha'); } - + https://dashboard.stripe.com/search?query=risk_level%3Ahighest&account=acct_1CVGWQLYhjvFj9Sz $id = $socid; $upload_dir = $conf->societe->multidir_output[$object->entity]; $permissioncreate=$user->rights->societe->creer; @@ -762,9 +762,10 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' print '
| '; print $companypaymentmodetemp->stripe_card_ref; - /*if ($companypaymentmodetemp->stripe_card_ref) + if ($companypaymentmodetemp->stripe_card_ref) { - $url='https://dashboard.stripe.com/test/card/'.$companypaymentmodetemp->stripe_card_ref; + $connect=''; + if (!empty($stripeacc)) $connect=$stripeacc.'/'; + $url='https://dashboard.stripe.com/'.$connect.'test/search?query='.$companypaymentmodetemp->stripe_card_ref; if ($servicestatus) { - $url='https://dashboard.stripe.com/card/'.$companypaymentmodetemp->stripe_card_ref; + $url='https://dashboard.stripe.com/'.$connect.'search?query='.$companypaymentmodetemp->stripe_card_ref; } print ' '.img_picto($langs->trans('ShowInStripe'), 'object_globe').''; - }*/ + } print ' | '; print ''; print img_credit_card($companypaymentmodetemp->type); @@ -971,13 +975,17 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' } // Src ID print ' | '; + $connect=''; + print $src->id; if (!empty($stripeacc)) $connect=$stripeacc.'/'; - $url='https://dashboard.stripe.com/'.$connect.'test/sources/'.$src->id; + //$url='https://dashboard.stripe.com/'.$connect.'test/sources/'.$src->id; + $url='https://dashboard.stripe.com/'.$connect.'test/search?query='.$src->id; if ($servicestatus) { - $url='https://dashboard.stripe.com/'.$connect.'sources/'.$src->id; + //$url='https://dashboard.stripe.com/'.$connect.'sources/'.$src->id; + $url='https://dashboard.stripe.com/'.$connect.'search?query='.$src->id; } - print $src->id." ".img_picto($langs->trans('ShowInStripe'), 'object_globe').""; + print " ".img_picto($langs->trans('ShowInStripe'), 'object_globe').""; print ' | '; // Img of credit card print ''; |