-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send notification when payment of auto-recharge/susbcription in…
…voice fails
- Loading branch information
Showing
7 changed files
with
118 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
""" | ||
|
||
import os | ||
import json | ||
from pathlib import Path | ||
|
||
import sentry_sdk | ||
|
@@ -265,6 +264,7 @@ | |
ADMIN_EMAILS = config("ADMIN_EMAILS", cast=Csv(), default="") | ||
SUPPORT_EMAIL = "Gooey.AI Support <[email protected]>" | ||
SALES_EMAIL = "Gooey.AI Sales <[email protected]>" | ||
PAYMENT_EMAIL = "Gooey.AI Payments <[email protected]>" | ||
SEND_RUN_EMAIL_AFTER_SEC = config("SEND_RUN_EMAIL_AFTER_SEC", 5) | ||
|
||
DISALLOWED_TITLE_SLUGS = config("DISALLOWED_TITLE_SLUGS", cast=Csv(), default="") + [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>{% block title %}{% endblock title %}</title> | ||
|
||
{% block head %}{% endblock head %} | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
</head> | ||
|
||
<body class="d-flex flex-column min-vh-100"> | ||
<div class="flex-fill"> | ||
{% block content %}{% endblock content %} | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends 'base_email.html' %} | ||
|
||
{% block title %}Payment failed{% endblock title %} | ||
|
||
{% block content %} | ||
<p>Hi {{ user.first_name() }},</p> | ||
|
||
<p>We attempted to process your payment for ${{ dollar_amt }} but your payment method was declined.</p> | ||
|
||
<p> | ||
Please <a href="{{ invoice_url }}">make a payment</a> on Gooey.AI for continued service or update | ||
your payment method on <a href="{{ account_url }}">your account</a>. | ||
</p> | ||
|
||
<p> | ||
<a href="{{ invoice_url }}"> | ||
<button class="btn btn-dark text-light">Make Payment</button> | ||
</a> | ||
</p> | ||
|
||
<p> | ||
Cheers,<br /> | ||
The Gooey.AI team | ||
</p> | ||
{% endblock content %} |