From 57ec92ed7cd18854b5beb6e304df116e92a36f2b Mon Sep 17 00:00:00 2001 From: Son Date: Wed, 1 Dec 2021 17:27:29 +0100 Subject: [PATCH] suggest user to use an email alias during the Paddle checkout --- templates/dashboard/pricing.html | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/templates/dashboard/pricing.html b/templates/dashboard/pricing.html index 4900dab4..70687329 100644 --- a/templates/dashboard/pricing.html +++ b/templates/dashboard/pricing.html @@ -156,10 +156,26 @@ Paddle.Setup({vendor: {{ PADDLE_VENDOR_ID }}}); function upgrade(productId) { - Paddle.Checkout.open({ - product: productId, - success: "{{ success_url }}", - passthrough: "{\"user_id\": {{current_user.id}} }" + bootbox.dialog({ + title: `Payment with credit card or PayPal via Paddle`, + message: `Paddle will ask for an email address for sending out the invoices, please feel free to use an alias.
+ You don't have to use your SimpleLogin account email address`, + size: 'large', + onEscape: true, + backdrop: true, + buttons: { + got_it: { + label: 'Got it!', + className: 'btn-outline-primary', + callback: function () { + Paddle.Checkout.open({ + product: productId, + success: "{{ success_url }}", + passthrough: "{\"user_id\": {{current_user.id}} }" + }); + } + }, + } }); }