Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="scheduledtransaction-summary" style="margin-bottom:10px">
- {%- financialscheduledtransaction id:'{{ScheduledTransaction.Id}}' securityenabled:'false' -%}
- {%- assign transactions = financialscheduledtransaction.Transactions | OrderBy: 'CreatedDateTime desc' -%}
- {%- for trans in transactions limit:1 -%}
- {%- assign status = trans.Status -%}
- {%- if status == "DECLINED" or status == "UNKNOWN" or status == "REVERSED" or status == "LATE_RETURN" or status == "RETURNED" -%}
- <div class="alert alert-danger">
- <strong>Schedule Failing: </strong><span class="js-notification-text">The recent transaction for the schedule below failed. Please edit the schedule and update the payment method. This notification will continue to appear until the next successful payment.
- </div>
- {%- endif -%}
- {%- endfor -%}
- {%- endfinancialscheduledtransaction -%}
- <strong>{{ ScheduledTransaction.PersonName }}</strong><br>
- {{ ScheduledTransaction.ScheduledAmount | FormatAsCurrency }} on
- {%- if ScheduledTransaction.CurrencyType != "Credit Card" -%}
- {{ ScheduledTransaction.CurrencyType }}
- {%- else -%}
- {{ ScheduledTransaction.CreditCardType }} {{ ScheduledTransaction.AccountNumberMasked }}{%- if ScheduledTransaction.CardExpirationDate and ScheduledTransaction.CardExpirationDate != empty -%} Expires: {{ ScheduledTransaction.CardExpirationDate }} {%- endif -%}
- {%- if ScheduledTransaction.CardIsExpired -%}
- <span class='label label-warning'>Card Expired</span>
- {%- elseif ScheduledTransaction.Status and ScheduledTransaction.Status != 'Active' -%}
- <span class='label label-warning'>{{ ScheduledTransaction.Status }}</span>
- {%- endif -%}
- {%- endif -%}<br>
- {{ ScheduledTransaction.FrequencyDescription | downcase }}.
- {%- if ScheduledTransaction.NextPaymentDate != null -%}
- Next gift will be on {{ ScheduledTransaction.NextPaymentDate | Date:"MMMM d, yyyy" }}.
- {%- endif -%}
- {%- if ScheduledTransaction.EditPage == null -%}
- <p>Please contact us to if you need to change this scheduled transaction.</p>
- {%- endif -%}
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement