diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php
index 38b5f1b4a00..287f9a576db 100644
--- a/htdocs/public/payment/newpayment.php
+++ b/htdocs/public/payment/newpayment.php
@@ -1880,7 +1880,7 @@ if ($action != 'dopayment') {
print '
'.$langs->trans("DonationPaid").'';
} else {
// Membership can be paid and we still allow to make renewal
- if ($source == 'membersubscription' && $object->datefin > dol_now()) {
+ if (($source == 'member' || $source == 'membersubscription') && $object->datefin > dol_now()) {
$langs->load("members");
print '
'.$langs->trans("MembershipPaid", dol_print_date($object->datefin, 'day')).'
';
print '