Feature Request: Automated "Transaction Refunded" Email Template for Clients

by Mahmudul · 2 weeks ago

Summary

Currently, Blesta has automated client email templates for events like "Payment Received" (payment_received). However, when a transaction is refunded—either remotely via a payment gateway (e.g., PayPal, bKash, Stripe) or manually updated to "Refunded" in admin_clients—Blesta does not dispatch an automated refund confirmation email to the client.

Problem

  1. When a transaction is marked as "Refunded", the payment is unapplied from the invoice and removed from the client's "Approved Transactions" view in the client portal.
  2. Because no email receipt/notice is sent to the client, clients frequently get confused and raise false claims or dispute tickets claiming they never received the refund.
  3. Admins currently have to manually email clients or update support tickets with the refund details and refund transaction ID.

Proposed Solution

Add a native, toggleable Email Template under: Settings > Company > Emails > Client Email Templates -> "Transaction Refund" (transaction_refund)

Suggested Template Tags:

  • {contact.first_name} / {contact.last_name}
  • {transaction.id} (Original Transaction ID / Reference)
  • {transaction.number} / {transaction.refund_transaction_id} (Refund TrxID from gateway)
  • {transaction.type} (Gateway Name e.g., bKash, PayPal)
  • {transaction.amount} & {transaction.currency}
  • {transaction.date_added}
  • {invoices} (Associated Invoice Numbers)

Trigger Logic

Trigger this email automatically when:

  • An admin edits a transaction to "Refunded" and saves (or checks a "Send Email Receipt" checkbox).
  • A payment gateway successfully executes a remote refund (Payments::refundPayment() / GatewayPayments::refundPayment()).

This would bring refund communications on par with payment receipts and significantly reduce customer confusion and billing disputes.

Comments (0)

No comments yet. Be the first to share your thoughts!

0

0 voters

Status Open
Category Payment Gateways