#michael_19345
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- michael-ece-handleerrors, 51 minutes ago, 38 messages
- michael_19345, 9 hours ago, 5 messages
- michael_19345, 3 days ago, 16 messages
- michael-ece-link, 4 days ago, 15 messages
- michael_19345, 4 days ago, 3 messages
- michael_19345, 4 days ago, 6 messages
and 3 more
You cannot configure this via payment method config, but you can optionally force-disable wallets via payment element initialization config using the wallets option to set eg googlePay: 'never'
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets
should this prop be inside this?
this.elements = this.stripe?.elements({
appearance: {
theme: 'stripe',
// If we want to customise
// variables: {
// colorPrimary: '#0570de',
// colorBackground: 'var(--onstage-background-color)',
// colorText: 'var(--onstage-text-color)',
// colorDanger: '#df1b41',
// fontFamily: 'Ideal Sans, system-ui, sans-serif',
// spacingUnit: '2px',
// borderRadius: '4px',
// // See all possible variables below
// },
rules: {
'.Label': {
color: textColor,
},
},
},
clientSecret,
});
No that's the elements group creation, the wallets option is in the payment element creation
elements.create('payment' , ...)
this is the element im referring too
so here? const paymentElement = this.elements.create('payment');
const paymentElement = this.elements.create('payment', { wallets: {
applePay: 'never',
googlePay: 'never'
} });
?
Yes, that looks right. I wouldn't expect to see the google pay option with this configuration.
Great! NP!