#datad398
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
Hi
Why you want to click on the button automatically? You need to let your customer to click on the button
You can't achieve that, that's a security leak
i have create custom button with custome design
you can't click on the button on behalf of the customer him self
You can use your own button:
https://docs.stripe.com/stripe-js/elements/payment-request-button?client=html#html-js-own-button
But you need to make the call after a click from a customer
before mounting button i am changing quantitiy and variants of products because after mount button we can't change quantity and variant because i dont know how to reload payment request button without loading page.
above screenshot code is working for google pay but not on apple pay
Why you want to reload the payment request button ?
You can simply update the PaymentIntent with the new amount
but you keep the Payment request Button
i cant update prices accourding to variants . how i can update prices in apple pay
i should use that function to update paymentRequest.update(options)
Sorry, but I'm not seeing the link between automatically showing the payment request and the update ?
Okay thanks . let me try. and i will get back to you