Skip to content

Commit 0f02adb

Browse files
authored
Fix description of payment intent when paying via pay order page #2292
1 parent ace1b9f commit 0f02adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/class-wc-stripe-intent-controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ public function update_payment_intent( $payment_intent_id = '', $order_id = null
407407
'amount' => WC_Stripe_Helper::get_stripe_amount( $amount, strtolower( $currency ) ),
408408
'currency' => strtolower( $currency ),
409409
'metadata' => $gateway->get_metadata_from_order( $order ),
410-
'description' => __( 'Stripe - Order', 'woocommerce-gateway-stripe' ) . ' ' . $order->get_id(),
410+
/* translators: 1) blog name 2) order number */
411+
'description' => sprintf( __( '%1$s - Order %2$s', 'woocommerce-gateway-stripe' ), wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), $order->get_order_number() ),
411412
];
412413

413414
if ( '' !== $selected_upe_payment_type ) {

0 commit comments

Comments
 (0)