forked from podkrepi-bg/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stripe] Implement Refund event listener in Stripe webhook (podkrepi-…
…bg#556) * Add refund optionallity * Improve email sent to the user * Remove not needed debug * Add test for charge.refunded * Refactor vault service * Fix vault-service * Remove breakline from email * Add refund endpoint * Update refund comment * Udate emailVariable func name * Fix text in the e-mail --------- Co-authored-by: i553818 <[email protected]> Co-authored-by: igoychev <[email protected]>
- Loading branch information
1 parent
cdda5b3
commit 4a6e572
Showing
13 changed files
with
418 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"subject": "Заявка за възстановяване на пари от дарение в Подкрепи.бг" | ||
} |
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,68 @@ | ||
<mjml> | ||
<mj-body background-color="#ffffff" font-size="13px"> | ||
<mj-section | ||
background-color="#009FE3" | ||
vertical-align="top" | ||
padding-bottom="0px" | ||
padding-top="0"> | ||
<mj-column vertical-align="top" width="100%"> | ||
<mj-text | ||
align="left" | ||
color="#ffffff" | ||
font-size="45px" | ||
font-weight="bold" | ||
font-family="open Sans Helvetica, Arial, sans-serif" | ||
padding-left="25px" | ||
padding-right="25px" | ||
padding-bottom="30px" | ||
padding-top="50px"> | ||
Върнати пари от дарение в Подкрепи.бг | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section background-color="#009fe3" padding-bottom="20px" padding-top="20px"> | ||
<mj-column vertical-align="middle" width="100%"> | ||
<mj-text | ||
align="left" | ||
color="#ffffff" | ||
font-size="22px" | ||
font-family="open Sans Helvetica, Arial, sans-serif" | ||
padding-left="25px" | ||
padding-right="25px"> | ||
<span style="color: #feeb35"> Здравейте, </span> | ||
<br /><br /> | ||
</mj-text> | ||
<mj-text | ||
align="left" | ||
color="#ffffff" | ||
font-size="15px" | ||
font-family="open Sans Helvetica, Arial, sans-serif" | ||
padding-left="25px" | ||
padding-right="25px"> | ||
Това е автоматичен e-mail, който потвърждава, че ще получите обратно парите от вашето | ||
дарение към кампанията {{campaignName}}. <br /> | ||
За съжаление, поради ограничения на Stripe, не можем да ви възстановим таксите, които са | ||
удържани от тях. <br /><br /> | ||
|
||
Допълнителни подробности:<br /> | ||
Сумата която ще възстановим е на стойност {{netAmount}} {{currency}}.<br /> | ||
Таксата удържана от Stripe е на стойност {{taxAmount}} {{currency}}<br /> | ||
Транзакцията ще отнеме от 5 до 10 дни и парите ще ви бъдат върнати към същата карта, с | ||
която сте превели дарението към Страйп. <br /><br /> | ||
|
||
Благодарим ви за разбирането! | ||
</mj-text> | ||
<mj-text | ||
align="left" | ||
color="#ffffff" | ||
font-size="15px" | ||
font-family="open Sans Helvetica, Arial, sans-serif" | ||
padding-left="25px" | ||
padding-right="25px"> | ||
Поздрави, <br /> | ||
Екипът на Подкрепи.бг</mj-text | ||
> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
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
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
Oops, something went wrong.