diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php
index 964d0463f55..996a80cb132 100644
--- a/htdocs/stripe/transaction.php
+++ b/htdocs/stripe/transaction.php
@@ -164,25 +164,25 @@ if (! $rowid) {
print '
';
// Ref
- if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
+ if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
- if (preg_match('/po_/i', $txn->source)){
+ if (preg_match('/po_/i', $txn->source)){
$origin="payouts";
- } elseif (preg_match('/fee_/i', $txn->source)) {
- $origin="connect/application_fees";
- } else {
- $origin="payments";
- }
+ } elseif (preg_match('/fee_/i', $txn->source)) {
+ $origin="connect/application_fees";
+ } else {
+ $origin="payments";
+ }
- $url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
+ $url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
- if ($servicestatus)
+ if ($servicestatus)
{
- $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
+ $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
}
- if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') {
- print "| ".$txn->type." | ";
+ if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') {
+ print "".$txn->type." | ";
} else print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . " | \n";
// Stripe customer
//print "".$charge->customer." | \n";