diff --git a/includes/gateways/stripe/includes/class-give-stripe-payment-intent.php b/includes/gateways/stripe/includes/class-give-stripe-payment-intent.php index 7b9f60e1eb..8052aae1be 100644 --- a/includes/gateways/stripe/includes/class-give-stripe-payment-intent.php +++ b/includes/gateways/stripe/includes/class-give-stripe-payment-intent.php @@ -68,8 +68,11 @@ public function create( $args ) { ); give_set_error('stripe_payment_intent_error', - __('There was an issue with your donation transaction. Please check your payment method or contact your card issuer for assistance. If the issue persists, try a different payment method or contact the site administrators.', - 'give')); + sprintf( + __('There was an issue with your donation transaction: %s
Please check your payment method or contact your card issuer for assistance. If the issue persists, try a different payment method or contact the site administrators.', 'give'), + $e->getMessage() + ) + ); return false; } // End try().