We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c480eb commit 318c10fCopy full SHA for 318c10f
functions/alert_parser.js
@@ -1,6 +1,6 @@
1
const alertParsers = {
2
subscription_created: (req) => ({
3
- cancel_url: req.body.cancel_url,
+ cancel_url: req.body.cancel_url || '',
4
checkout_id: req.body.checkout_id,
5
currency: req.body.currency,
6
email: req.body.email,
@@ -13,7 +13,7 @@ const alertParsers = {
13
subscription_id: req.body.subscription_id,
14
subscription_plan_id: req.body.subscription_plan_id,
15
unit_price: req.body.unit_price,
16
- update_url: req.body.update_url,
+ update_url: req.body.update_url || '',
17
}),
18
subscription_cancelled: (req) => ({
19
cancellation_effective_date: req.body.cancellation_effective_date,
0 commit comments