#yoitspeterson-ios-payment-element
1 messages · Page 1 of 1 (latest)
Can you share your code for how you are rendering Payment Element here?
yoitspeterson-ios-payment-element
ready() {
const elements = this.state.stripeClient.elements({
clientSecret: this.props?.clientSecret,
});
const element: StripePaymentElement = elements.create('payment', {
paymentMethodOrder: ['card'],
});
this.update({ element, elements });
element.mount('#payment-element');
this.trigger('payment-element-mounted');
element.on('change', (event) => this.trigger('payment-element-changed', event));
this.on('payment-succeeded', () => element.unmount());
this.on('checkbox-checked', () => {
// if using default payment method to checkout payment element should be disabled
element.update({
readOnly: ($('#default-payment-checkbox' ) as HTMLInputElement[])[0]?.checked,
});
});
},
Thanks and are you seeing the same behavior here across different browsers?
it was present iOS only, i am not sure what browser, i just asked our QA team
Okay that would be useful to know the browser if you can find that out.
Thinking about what this might be... give me a few mins
thanks! i will try to replicate in the mean time
The device you are experiencing this on would also be really helpful
iPhone 8 Plus on iOS 15.4
iPhone 11 Pro Max IOS 15.4
Thanks that's great. Did you get the browser as well?
our QA team is in belarus
i have none on this element
Hmm it doesn't have any labels though
should look like this
Oh it does have labels
They are just really dark
Can barely see them
Ah okay I think I see what is happening
Yep got it
So the issue is because the Russian locale has such a long label for expiry
It is messing with the mobile formatting
I'll need to file a ticket internally for this
So really this should only be an issue for Russian (or Belarussian) customers.
ahhh
okay i see, thank you also for catching the really dark labels, i look at this all day i forget whats there and whats not sometimes
Yep no problem!
to change the label color can i do that from within appearance or do i need to set a variable
Variable within appearance: https://stripe.com/docs/stripe-js/appearance-api#commonly-used-variables
Yep that is a rule option
can you change color of floating label and the text color once typing into a field