mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 07:13:18 +08:00
suggest user to use an email alias during the Paddle checkout
This commit is contained in:
parent
4f9bb59b58
commit
57ec92ed7c
1 changed files with 20 additions and 4 deletions
|
@ -156,10 +156,26 @@
|
||||||
Paddle.Setup({vendor: {{ PADDLE_VENDOR_ID }}});
|
Paddle.Setup({vendor: {{ PADDLE_VENDOR_ID }}});
|
||||||
|
|
||||||
function upgrade(productId) {
|
function upgrade(productId) {
|
||||||
Paddle.Checkout.open({
|
bootbox.dialog({
|
||||||
product: productId,
|
title: `Payment with credit card or PayPal via Paddle`,
|
||||||
success: "{{ success_url }}",
|
message: `Paddle will ask for an email address for sending out the invoices, please feel free to use an alias. <br>
|
||||||
passthrough: "{\"user_id\": {{current_user.id}} }"
|
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}} }"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue