Skip to content

Commit

Permalink
Fix: Add a message for the donor when his card is declined (#7733)
Browse files Browse the repository at this point in the history
  • Loading branch information
Genevieve-K authored Feb 20, 2025
1 parent 18bfc2a commit d1bdc8a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>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().
Expand Down

0 comments on commit d1bdc8a

Please sign in to comment.