#nikolakg80

1 messages · Page 1 of 1 (latest)

rustic flaxBOT
worn dagger
granite fractal
#

On my checkout page, I can change the order, therefore the amount...

worn dagger
#

The fucntion I shared is for js integration. You are using mobile SDK ?

granite fractal
#

No, I am using the js integration, and I use elements.update({ amount: 1000 })

#

This works when I'm not logged in into link

worn dagger
#

Could you share your code ?

granite fractal
#

Sorry, I can't recreate this...
Might be it's something with Vue

#
            const { stripeAmount, showStripeForm } = this;
            const stripePaymentForm = $('#stripe-payment-form');
            stripePaymentForm.toggle(showStripeForm);
            if (elements) {
                elements.update({ amount: stripeAmount });
            }
        },
worn dagger
#

What is the exact need when are you updating the element amount ?

granite fractal
#

I'm working on online food ordering. And the user is allowed to change the quantity of ordered food

#

So I click on a plus sign next to the item, and the amount changes

worn dagger
#

And what is the exact error message ?

#

can you share a screenshot ?

granite fractal
#

"You cannot update Payment Request options while the payment sheet is showing"

#

Can't recreate it anymore, which is great

worn dagger
#

Well, happy to hear that, don't hesitate to come back if you will be facing this again.

granite fractal
#

Hopefully it won't happen again.
Thank you, I'm so glad that you have this support channel, it makes life easier when you have an expert to talk to