1
0
mirror of synced 2026-08-05 14:47:03 +00:00

FIX: Payments could not complete (#28)

Due to putting the Stripe Elements HTML inside an if block in the
template, this caused state to be funky. As a result, calling
`this.stripe.createToken` failed to return a promise. Opted instead to
hide the elements via CSS for anonymous users to prevent this
showstopping bug.
This commit is contained in:
Justin DiRose
2020-10-29 10:21:14 -05:00
committed by GitHub
parent 1ad5b17640
commit b950926538
2 changed files with 6 additions and 1 deletions
@@ -26,12 +26,13 @@
<hr>
{{subscribe-card cardElement=cardElement}}
{{#if loading}}
{{loading-spinner}}
{{else if isAnonymous}}
{{login-required}}
{{else}}
{{subscribe-card cardElement=cardElement}}
{{d-button
disabled=loading
+4
View File
@@ -14,6 +14,10 @@
width: 100%;
}
.anon #card-element {
display: none;
}
.StripeElement {
box-sizing: border-box;