#deathnote-react-paymentelement
1 messages ยท Page 1 of 1 (latest)
@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
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
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?
yes it has no errors just warnings
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
Was this form working on your page before?
Can you show me the warnings that you are getting?
it never worked
yes i will send print
Can you show me your current Stripe.js code for setting up this form?
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
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?
you say just the form?
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
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
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
yes I just changed from checkout to the test where there is the file that only shows the form
Could you repeat that sentence because the translation was repeated so I don't understand
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.
so now I understand
so when you finish your tests let me know please
meanwhile I'm trying to make the page reduced
Do you have opening and closing <Elements> tags in your code somewhere? I don't see them in the code that you sent
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?
I am talking about something else. I incorrectly described the code that I was asking for.
Do you have code that calls loadStripe and sets up Stripe <Element> tags like in this section of this doc? https://stripe.com/docs/payments/accept-card-payments?platform=web&ui=elements&client=react#add-stripe.js-and-elements-to-your-page
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>```
you say put this code in this print?
put your code in the print I just sent?
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.
Still no console errors?
yes just warnings
Is there another way to put the form without exporting it from another location?
as if it were an html?
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.
I have a high level understanding of the problem, but haven't had a chance to fully review all provided code.
what part of the code do you want me to send you?
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?
yes follow all his recommendations
Can you show the page that was built by following the instructions shared in this doc?
https://stripe.com/docs/payments/accept-card-payments?platform=web&ui=elements&client=react#add-stripe.js-and-elements-to-your-page
what would be the client side?
Steps 3 and 4 contain the client-side code samples.
๐ @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