From 88d01fbb224ee5e36eaada4388baeee9cf182847 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Jan 2020 16:02:28 +0100 Subject: [PATCH] Save also customer account onn card level. --- htdocs/societe/paymentmodes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 4f0f349e7be..90d5d4412ae 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -222,7 +222,7 @@ if (empty($reshook)) if (GETPOST('stripe_card_ref', 'alpha') && GETPOST('stripe_card_ref', 'alpha') != $companypaymentmode->stripe_card_ref) { // If we set a stripe value that is different than previous one, we also set the stripe account - $companypaymentmode->stripe_account = $site_account; + $companypaymentmode->stripe_account = $stripecu.'@'.$site_account; } $companypaymentmode->stripe_card_ref = GETPOST('stripe_card_ref', 'alpha'); @@ -383,7 +383,7 @@ if (empty($reshook)) if (GETPOST('stripe_card_ref', 'alpha')) { // If we set a stripe value, we also set the stripe account - $companypaymentmode->stripe_account = $site_account; + $companypaymentmode->stripe_account = $stripecu.'@'.$site_account; } $companypaymentmode->stripe_card_ref = GETPOST('stripe_card_ref', 'alpha'); @@ -867,7 +867,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' { $url = 'https://dashboard.stripe.com/'.$connect.'customers/'.$stripecu; } - print ' '.img_picto($langs->trans('ShowInStripe').' - Publishable key '.$site_account, 'globe').''; + print ' '.img_picto($langs->trans('ShowInStripe').' - Publishable key = '.$site_account, 'globe').''; } print ''; if (empty($stripecu)) @@ -1077,7 +1077,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' { $url = 'https://dashboard.stripe.com/'.$connect.'search?query='.$companypaymentmodetemp->stripe_card_ref; } - print ' '.img_picto($langs->trans('ShowInStripe').' - Publishable key '.$companypaymentmodetemp->stripe_account, 'globe').''; + print ' '.img_picto($langs->trans('ShowInStripe').' - Customer and Publishable key = '.$companypaymentmodetemp->stripe_account, 'globe').''; } print ''; print '';