diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 2a2a14a25d7..a03c0a719c6 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -477,12 +477,12 @@ if ($action == 'charge' && ! empty($conf->stripe->enabled)) 'amount' => price2num($amountstripe, 'MU'), 'currency' => $currency, 'capture' => true, // Charge immediatly - 'description' => 'Stripe payment: '.$FULLTAG, + 'description' => 'Stripe payment: '.$FULLTAG.' ref='.$ref, 'metadata' => $metadata, 'customer' => $customer->id, 'source' => $card, 'statement_descriptor' => dol_trunc(dol_trunc(dol_string_unaccent($mysoc->name), 6, 'right', 'UTF-8', 1).' '.$FULLTAG, 22, 'right', 'UTF-8', 1) // 22 chars that appears on bank receipt - ),array("idempotency_key" => "$ref","stripe_account" => "$stripeacc")); + ),array("idempotency_key" => "$ref", "stripe_account" => "$stripeacc")); // Return $charge = array('id'=>'ch_XXXX', 'status'=>'succeeded|pending|failed', 'failure_code'=>, 'failure_message'=>...) if (empty($charge)) { @@ -517,10 +517,10 @@ if ($action == 'charge' && ! empty($conf->stripe->enabled)) 'amount' => price2num($amountstripe, 'MU'), 'currency' => $currency, 'capture' => true, // Charge immediatly - 'description' => 'Stripe payment: '.$FULLTAG, + 'description' => 'Stripe payment: '.$FULLTAG.' ref='.$ref, 'metadata' => $metadata, 'statement_descriptor' => dol_trunc(dol_trunc(dol_string_unaccent($mysoc->name), 6, 'right', 'UTF-8', 1).' '.$FULLTAG, 22, 'right', 'UTF-8', 1) // 22 chars that appears on bank receipt - ),array("idempotency_key" => "$ref","stripe_account" => "$stripeacc")); + ),array("idempotency_key" => "$ref", "stripe_account" => "$stripeacc")); // Return $charge = array('id'=>'ch_XXXX', 'status'=>'succeeded|pending|failed', 'failure_code'=>, 'failure_message'=>...) if (empty($charge)) {