Compare commits
1 commit
master
...
feature/ec
| Author | SHA1 | Date | |
|---|---|---|---|
| be5ee152e0 |
1 changed files with 14 additions and 6 deletions
|
|
@ -2144,8 +2144,12 @@ def process_payment(
|
||||||
# Send refund email notification
|
# Send refund email notification
|
||||||
if crypto_payment.invoice and crypto_payment.invoice.user:
|
if crypto_payment.invoice and crypto_payment.invoice.user:
|
||||||
try:
|
try:
|
||||||
|
# Create shop context request
|
||||||
|
email_request = create_shop_context_request(
|
||||||
|
env_request, crypto_payment
|
||||||
|
)
|
||||||
send_refund_email(
|
send_refund_email(
|
||||||
env_request,
|
email_request,
|
||||||
crypto_payment.invoice.user.email,
|
crypto_payment.invoice.user.email,
|
||||||
crypto_payment,
|
crypto_payment,
|
||||||
refund_details,
|
refund_details,
|
||||||
|
|
@ -2904,8 +2908,12 @@ def process_payment(
|
||||||
# Send refund email notification
|
# Send refund email notification
|
||||||
if crypto_payment.invoice and crypto_payment.invoice.user:
|
if crypto_payment.invoice and crypto_payment.invoice.user:
|
||||||
try:
|
try:
|
||||||
|
# Create shop context request
|
||||||
|
email_request = create_shop_context_request(
|
||||||
|
env_request, crypto_payment
|
||||||
|
)
|
||||||
send_refund_email(
|
send_refund_email(
|
||||||
env_request,
|
email_request,
|
||||||
crypto_payment.invoice.user.email,
|
crypto_payment.invoice.user.email,
|
||||||
crypto_payment,
|
crypto_payment,
|
||||||
refund_details,
|
refund_details,
|
||||||
|
|
@ -3279,10 +3287,10 @@ def process_refund_confirmations(request, settings):
|
||||||
# Send refund email notification
|
# Send refund email notification
|
||||||
if payment.invoice and payment.invoice.user:
|
if payment.invoice and payment.invoice.user:
|
||||||
try:
|
try:
|
||||||
# Create a basic request object for email context
|
# Create shop context request
|
||||||
from pyramid.testing import DummyRequest
|
email_request = create_shop_context_request(
|
||||||
email_request = DummyRequest()
|
request, payment
|
||||||
email_request.registry = request.registry
|
)
|
||||||
send_refund_email(
|
send_refund_email(
|
||||||
email_request,
|
email_request,
|
||||||
payment.invoice.user.email,
|
payment.invoice.user.email,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue