#day0_code

1 messages ยท Page 1 of 1 (latest)

candid galleonBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

stone haven
#

๐Ÿ‘‹ Hi there! Let me take a look

#

Can you share a screenshot of what you're seeing in the popup, where you expect the line items to be?

lunar horizon
#

So we just see the total amount

#

Awesome, thanks for pointing out the click handler

stone haven
#

But I'm looking into how updates should work here. Were you following some specific documentation here?

#

For example:

expressCheckoutElement.on('click', (event) => {
  console.log('ECE clicked:', event.expressPaymentType);
  event.resolve({
    lineItems: [
      {
        name: 'First item',
        amount: 123,
      }
    ]
  });
});
lunar horizon
#

I can see the subtotal showing the click event now, but is it possible to update the lineItems as changes occur within the window? For example if someone changes the shipping method, we would want to change the price on the shipping line.

stone haven
stone haven
lunar horizon
#

Yeah, I see the arrow. I think I have it now, just trying it to see.