#deathnote-react-paymentelement

1 messages ยท Page 1 of 1 (latest)

river gobletBOT
fading bluff
#

@wild sequoia what do you need help with exactly? This Discord server is more targeted at developers writing their own code themselves and asking specific questions about our product/their code.
We can't write the code for you or teach you unfortunately but we can definitely answer questions if you have specific ones

wild sequoia
#

ok got it, i'm using google translate sorry for any spelling mistakes

#

So let's go, I have a sales website and I wanted to put the stripe ui to accept payments, but my website already has a stripe form, but in the check or it does not appear. so i thought i would ask for help here

true lotus
#

Do you see any errors related to the form not showing up?

#

Have you checked your browser's developer console to see if there are any errors?

wild sequoia
#

yes it has no errors just warnings

wild sequoia
# wild sequoia

if you notice under the example there is a space it looks like there is something that was not loaded in time to be shown

#

as if there were going to show the form to fill in with the card data to pay

true lotus
#

Was this form working on your page before?

#

Can you show me the warnings that you are getting?

wild sequoia
#

it never worked

wild sequoia
true lotus
#

Can you show me your current Stripe.js code for setting up this form?

wild sequoia
#

that?

#

this is on the server

true lotus
#

The client side code is what I am looking for. stripe.js is the name of the client-side library we provide for rending that checkout form

wild sequoia
#

if it's the client side code you're looking for and this

true lotus
#

That looks good from what I can see. Can you try making a simpler version of that page that is just the card element to see if it renders then?

wild sequoia
#

you say just the form?

true lotus
#

Yes, making a page that is just the form will help you check if it is something else on the page that is causing this

wild sequoia
#

Would you help me out of this? because I tried and it tells me that the page was not found

#

I will send a print of the code

true lotus
#

Unfortunately I am not familiar with your system that decides what URL directs to what. Is this the same local URL you were using before?

#

I am trying to run your code on my own test page. Will let you know what I find. Let me know what happens if you figure out your URL issue

wild sequoia
wild sequoia
true lotus
#

I can't help debug the issue with your page not being found. You should keep debugging that. Please let me know what happens if you get the simple page to work.

I am trying to run your code in my system. I will let you know the results of my tests if I get your code working in my system.

wild sequoia
#

so now I understand

#

so when you finish your tests let me know please

#

meanwhile I'm trying to make the page reduced

true lotus
#

Do you have opening and closing <Elements> tags in your code somewhere? I don't see them in the code that you sent

wild sequoia
#

yes in the return block there is one that starts on line 62 and ends on line 139

#

are you talking about this?

#

or not

#

could it be that the lack of this is not showing the form?

true lotus
wild sequoia
#

that?

true lotus
#

Yes, that code looks correct as far as I can see. Can you try placing your CardElement code directly inside the <Elements> ?

<CardElement
    options={{
      hidePostalCode: true,
      iconStyle: 'solid',
      style: {
        base: {
          color: '#111111',

          fontFamily: 'Arial, sans-serif',
          fontSmoothing: 'antialiased',
          fontSize: '16px',
          '::placeholder': {
            color: '#111111',
          },
        },
        invalid: {
          color: '#fa755a',
          iconColor: '#fa755a',
        },
      },
    }}
  />
</Elements>```
wild sequoia
#

put your code in the print I just sent?

true lotus
#

Yes

#

If that code works, that means that you have react-stripe-js set up correctly. In that case the issue is probably in your react component code. If that does not work, then your stripe setup may be the issue.

wild sequoia
#

it seems it didn't work

true lotus
#

Still no console errors?

wild sequoia
#

yes just warnings

#

Is there another way to put the form without exporting it from another location?

#

as if it were an html?

fading sigil
#

Hi there ๐Ÿ‘‹ taking over as my teammate needs to step away. Please bear with me a moment while I catch up on the context here.

wild sequoia
#

ok, no problem

#

did you get the context?

fading sigil
#

I have a high level understanding of the problem, but haven't had a chance to fully review all provided code.

wild sequoia
#

what part of the code do you want me to send you?

fading sigil
#

None, just more time to review what you've already provided

#

Sorry, nothing is readily jumping out at me. Have you tried following the guide my teammate linked before to stand up just a single sample page outside of your current project?

wild sequoia
#

yes follow all his recommendations

fading sigil
wild sequoia
#

what would be the client side?

fading sigil
#

Steps 3 and 4 contain the client-side code samples.

river gobletBOT
fading bluff
#

๐Ÿ‘‹ @wild sequoia to help you we're going to need you to explain in a lot more details what the issue is, focused completely on the exact small parts of the code that are the issue? We can't really debug hundreds of lines of code for you unfortunately
but if you have a specific question we can lool

#

deathnote-react-paymentelement

wild sequoia
#

I'll make a quick exit as soon as I get back I'll explain detail by detail

#

ok?