M views/credit_cards.slim => views/credit_cards.slim +5 -1
@@ 24,6 24,9 @@ form method="post" action=""
#braintree
| Unfortunately, our credit card processor requires JavaScript.
+ small
+ | Charges will come from MBOA or Soprani.ca Telecom
+
label#amount style="#{'display:none;' unless params['amount']}"
div Amount of initial deposit (minimum $15)
input type="number" name="amount" min="15" value="#{params.fetch('amount', '')}"
@@ 56,7 59,7 @@ javascript:
button.innerHTML = "Save";
document.querySelector("form").appendChild(button);
- if (window.xmpp_xep0050) {
+ if (window.xmpp_xep0050 && window.xmpp_xep0050.preventDefault) {
xmpp_xep0050.preventDefault();
window.addEventListener("message", (ev) => {
@@ 102,6 105,7 @@ javascript:
threeDSecure: {
amount: document.querySelector("input[name=amount]").value || "0.0",
requireChallenge: true,
+ challengeRequested: true,
collectDeviceData: true,
email: "#{jid.sub(/@cheogram.com$/, "").gsub(/(%5[cC])|\\/, "=")}@smtp.cheogram.com"
}
M views/esim_adapter.slim => views/esim_adapter.slim +4 -0
@@ 125,6 125,9 @@ section data-hx-get="/esim-adapter/total" data-hx-trigger="input delay:1s,change
input type="hidden" name="atfd" value=antifraud
input type="hidden" name="braintree_nonce"
+ small
+ | Charges will come from MBOA or Soprani.ca Telecom
+
label.half#compatible
span I have verified that my Android device is compatible with <a target="_blank" href="https://jmp.chat/esim-adapter">the app</a>
input type="checkbox" required=true
@@ 154,6 157,7 @@ javascript:
threeDSecure: {
amount: document.querySelector("input[name=amount]").value,
requireChallenge: true,
+ challengeRequested: true,
collectDeviceData: true,
email: document.querySelector("input[name=email]").value
}