#bootsy_messaging-element-styles
1 messages ยท Page 1 of 1 (latest)
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.
- bootsy_api, 1 day ago, 76 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1238539812147826871
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
No this part isn't something we can customize
That's what I'm curious about. The messaging doc: https://docs.stripe.com/payments/payment-method-messaging shows the logo above the text.
But we clearly don't have any feature in the Appearance API to allow you to configure this
yeah exactly. i like it better above the text like the docs, but if i can't change it so be it
OOC do you have a publicly accessible front-end where I can see this?
unfortunately i don't
Oh well. I will see if I can reproduce the behavior and raise it internally if I can
ok, thanks. different question...
Oh wierd, I see them above (forgot I already built this)
oh
i'm sending in this ``` const options = {
amount: 9900, // $99.00 USD // todo pass in amount
currency: 'USD',
// the country that the end-buyer is in
countryCode: 'US',
} as StripePaymentMethodMessagingElementOptions;
Interesting. I'm specifying the payment methods:
const options = {
amount: 55000, // $550.00 USD
currency: 'USD',
paymentMethodTypes: ['klarna', 'afterpay_clearpay', 'affirm'],
// the country that the end-buyer is in
countryCode: 'US',
}
huh, i can try that
Okay no I just removed that line and they still render above.... weird
Interesting
When I only have 1, it shows inline with the text
This could be due to a bunch of internal CSS rules
No, I mean CSS rules that are built into how the Messaging Element is rendered to do things like optimize for specific dimensions or layouts. But, to be fair, that's just a guess
ahh ok. different question. is there any kind of 'loading' variable. i've noticed after i call this.afterPayMessageElement.mount(this.afterPayMessage.nativeElement); there's still a second or two while the UI is empty before the forms load. we try to show a busy overlay when our api's are loading. is there any kind of promise or busy variable I can listen to while the ui is rendering?
You could try listening to the 'ready` event we document here: https://docs.stripe.com/js/element/events/on_ready
hmm... struggling to use that. when i use that the ui doesn't render at all...
this.afterPayMessageElement.mount(this.afterPayMessage.nativeElement);
// type: StripePaymentMethodMessagingElement
this.afterPayMessageElement.on('ready', function(event) {
// Handle ready event
debugger;
that.busy = false;
});```
if i don't run the .on() method it loads fine
Hmmm
And on('focus' doesn't work either?
i might have figured it out. not sure what i changed yet
it breaks when i have dev tools open
:๐คฆ:
but it works with dev tools closed so I'm good
๐