Coder Social home page Coder Social logo

Comments (7)

spenweb avatar spenweb commented on August 20, 2024 1

I am also experiencing this. With the latest release (v0.7.0), the Square payment form remote js script is no longer being loaded, thus no iFrames are created to receive credit card info.

from react-square-payment-form.

spenweb avatar spenweb commented on August 20, 2024 1

This bug seems to be due to this commit removing the statement that appends the script to the document:
cb6d041#diff-62481efeab60b6a2fc21d34271288c3fL205

In the previous commit, the script was being appended to the document. It is no longer. Here is the previous commit line:

document.body.appendChild(script);

from react-square-payment-form.

stephtaylor avatar stephtaylor commented on August 20, 2024 1

Thank you so much @HarounAns and @spenweb for pointing this issue out and investigating! The PR looks good so I'll publish a new package shortly.

from react-square-payment-form.

Xabadu avatar Xabadu commented on August 20, 2024

Hey @HarounAns,

Thanks for reaching out. Do you have a copy of your project published that you could share with us? Happy to take a look and help with this. If not, do you mind publishing and sharing the link with us? (If you need a tool to help with this, creating a Sandbox might be helpful).

from react-square-payment-form.

HarounAns avatar HarounAns commented on August 20, 2024

Hey @HarounAns,

Thanks for reaching out. Do you have a copy of your project published that you could share with us? Happy to take a look and help with this. If not, do you mind publishing and sharing the link with us? (If you need a tool to help with this, creating a Sandbox might be helpful).

I just cloned it, changed into the demo directory, npm installed and npm started it and got the issue. My fork is exactly the same as the parent repo

from react-square-payment-form.

HarounAns avatar HarounAns commented on August 20, 2024

This bug seems to be due to this commit removing the statement that appends the script to the document:
cb6d041#diff-62481efeab60b6a2fc21d34271288c3fL205

In the previous commit, the script was being appended to the document. It is no longer. Here is the previous commit line:

document.body.appendChild(script);

I forked your code and ran your dev branch locally and still got the same issue
image

from react-square-payment-form.

spenweb avatar spenweb commented on August 20, 2024

@HarounAns , unfortunately I was not able to load my locally built version of this package so I ended up manually adding the document.body.appendChild(script); statement manually to the latest (v0.7.0) package directly in my node_modules directory here: node_modules/react-square-payment-form/lib/components/SquarePaymentForm.js. This is definitely temporary, but once I added the statement at the end of the loadSqPaymentFormLibrary function, the payment form loads.

from react-square-payment-form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.