Add link to retry payment if error
This commit is contained in:
parent
a7390e7e47
commit
814c405021
@ -197,4 +197,4 @@ SendReminderForExpiredSubscriptionTitle=Send reminder by email for expired subsc
|
||||
SendReminderForExpiredSubscription=Send reminder by email to members when subscription is about to expire (parameter is number of days before end of subscription to send the remind. It can be a list of days separated by a semicolon, for example '10;5;0;-5')
|
||||
MembershipPaid=Membership paid for current period (until %s)
|
||||
YouMayFindYourInvoiceInThisEmail=You may find your invoice attached to this email
|
||||
XMembersClosed=%s member(s) closed
|
||||
XMembersClosed=%s member(s) closed
|
||||
|
||||
@ -64,4 +64,6 @@ ShowInStripe=Show in Stripe
|
||||
StripeUserAccountForActions=User account to use for email notification of some Stripe events (Stripe payouts)
|
||||
StripePayoutList=List of Stripe payouts
|
||||
ToOfferALinkForTestWebhook=Link to setup Stripe WebHook to call the IPN (test mode)
|
||||
ToOfferALinkForLiveWebhook=Link to setup Stripe WebHook to call the IPN (live mode)
|
||||
ToOfferALinkForLiveWebhook=Link to setup Stripe WebHook to call the IPN (live mode)
|
||||
PaymentWillBeRecordedForNextPeriod=Payment will be recorded for the next period.
|
||||
ClickHereToTryAgain=<a href="%s">Click here to try again...</a>
|
||||
@ -1695,6 +1695,7 @@ if ($action != 'dopayment')
|
||||
{
|
||||
$langs->load("members");
|
||||
print '<br><span class="amountpaymentcomplete">'.$langs->trans("MembershipPaid", dol_print_date($object->datefin, 'day')).'</span><br>';
|
||||
print '<span class="opacitymedium">'.$langs->trans("PaymentWillBeRecordedForNextPeriod").'</span><br>';
|
||||
}
|
||||
|
||||
// Buttons for all payments registration methods
|
||||
|
||||
@ -235,7 +235,7 @@ elseif (! empty($logo) && is_readable($conf->mycompany->dir_output.'/logos/'.$lo
|
||||
// Output html code for logo
|
||||
if ($urllogo)
|
||||
{
|
||||
print '<center><img id="dolpaymentlogo" title="'.$title.'" src="'.$urllogo.'"';
|
||||
print '<center><img id="dolpaymentlogo" src="'.$urllogo.'"';
|
||||
if ($width) print ' width="'.$width.'"';
|
||||
print '></center>';
|
||||
print '<br>';
|
||||
@ -246,6 +246,17 @@ print $langs->trans("YourPaymentHasNotBeenRecorded")."<br><br>";
|
||||
$key='ONLINE_PAYMENT_MESSAGE_KO';
|
||||
if (! empty($conf->global->$key)) print $conf->global->$key;
|
||||
|
||||
$type = GETPOST('s', 'alpha');
|
||||
$ref = GETPOST('ref', 'none');
|
||||
$tag = GETPOST('tag', 'alpha');
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
|
||||
if ($type || $tag)
|
||||
{
|
||||
$urlsubscription =getOnlinePaymentUrl(0, ($type?$type:'free'), $ref, $FinalPaymentAmt, $tag);
|
||||
|
||||
print $langs->trans("ClickHereToTryAgain", $urlsubscription);
|
||||
}
|
||||
|
||||
print "\n</div>\n";
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user