-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fully working GPay/ApplePay implementation #157
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this work without any server-side changes? Does it just show the buttons and then Stripe handles payment processing through a different channel?
We would also need to see some tests here prior to considering a merge.
.filterBy("id", this.selectedPlan) | ||
.get("firstObject"); | ||
console.log("plan") | ||
console.log(plan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticing a lot of console.log
s in this PR.
const elements = this.stripe.elements(); | ||
const paymentRequest = this.stripe.paymentRequest({ | ||
currency: "usd", | ||
country: "US", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should country and currency be hardcoded?
@@ -44,6 +44,18 @@ | |||
class="btn btn-primary btn-payment" | |||
label="discourse_subscriptions.plans.payment_button" | |||
}} | |||
|
|||
{{subscribe-payments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide a screenshot of what this would look like?
@@ -345,6 +1197,13 @@ | |||
"@glimmer/env" "^0.1.7" | |||
"@glimmer/global-context" "0.83.1" | |||
|
|||
"@google-pay/button-element@^3.0.6": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this being used in the plugin markup?
No description provided.