#jerome_17472

1 messages · Page 1 of 1 (latest)

brittle bridgeBOT
#

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.

finite wren
grizzled gorge
#

Hi can you summarize the issue and question per the above message

finite wren
#

yes. so. i have a react app. something really basic. I can already process credit card payment with stripe. now I need to add gpay and applepay button. iv seen some example of the code on stripe documentation so im sure the code is ok.
The button load but it replace everything in the page

#

its like the stripe button remove everything in the dom before it appear

#

this is before the button

#

this is after

grizzled gorge
#

Where you you mount the button in your code?

finite wren
#

you will see that inside the class="App" element, there is only StripeElement. everything else disappear.

grizzled gorge
#

Can you share that piece?

finite wren
grizzled gorge
#

I don't see App anywhere in the above code

finite wren
#

this is app.js

#

this is my page container

#

inside my stepper I have a layout a form and then the code for the gpay button

#

app.js -> page with stripe element -> layout -> gpay button code

#

mmm ill try to put the button code inside the stripe element component and then inside the layout and see what happen

#

maybe the button code is ment to replace everything inside the StripeElements

brittle bridgeBOT
grizzled gorge
#

That's possible. Difficult for me to follow just partial screenshots

#

Not clear to me how everything connects. Can you share the complete files?

finite wren
grizzled gorge
#

Yeah still would help to have the actual code files instead of screenshots to browse

#

The above doesn't show me the full picture at all

finite wren
#

ok give me a minute

#

i think I round my issue. the PaymentRequestButtonElement replace everything inside Elements... i can work with that

#

all good. we can close this