#bootsy_messaging-element-styles

1 messages ยท Page 1 of 1 (latest)

keen sequoiaBOT
humble yewBOT
#

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.

keen sequoiaBOT
#

๐Ÿ‘‹ 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.

wise depot
#

is there a way to show logo above text

somber wyvern
#

Hi ๐Ÿ‘‹

No this part isn't something we can customize

wise depot
#

ok

#

are the docs just not up to date with current functionality

somber wyvern
#

But we clearly don't have any feature in the Appearance API to allow you to configure this

wise depot
#

yeah exactly. i like it better above the text like the docs, but if i can't change it so be it

somber wyvern
#

OOC do you have a publicly accessible front-end where I can see this?

wise depot
#

unfortunately i don't

somber wyvern
#

Oh well. I will see if I can reproduce the behavior and raise it internally if I can

wise depot
#

ok, thanks. different question...

somber wyvern
#

Oh wierd, I see them above (forgot I already built this)

wise depot
#

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;

somber wyvern
#

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',
    }
wise depot
#

huh, i can try that

somber wyvern
#

Okay no I just removed that line and they still render above.... weird

wise depot
#

more than one shows above... wah, wah

somber wyvern
#

Interesting

#

When I only have 1, it shows inline with the text

#

This could be due to a bunch of internal CSS rules

wise depot
#

when you say internal, you mean other CSS rules i have defined in my app's code

#

?

somber wyvern
#

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

wise depot
#

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?

somber wyvern
wise depot
#

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

somber wyvern
#

Hmmm

somber wyvern
#

And on('focus' doesn't work either?

wise depot
#

i might have figured it out. not sure what i changed yet

#

it breaks when i have dev tools open

#

:๐Ÿคฆ:

keen sequoiaBOT
wise depot
#

but it works with dev tools closed so I'm good

somber wyvern
#

๐ŸŽ‰