Coder Social home page Coder Social logo

Comments (5)

stephtaylor avatar stephtaylor commented on July 20, 2024

Which version are you using? Is the URL request `'https://js.squareupsandbox.com/v2/paymentform'?

This change was made recently to migrate to the new sandbox: dffdfe3

from react-square-payment-form.

allenz-crypto avatar allenz-crypto commented on July 20, 2024

The URL is https://pci-connect.squareup.com/v2/card-nonce?version=85a1419eb2&_=1567463683109.9197

from react-square-payment-form.

mootrichard avatar mootrichard commented on July 20, 2024

I found out why this is happening. There is actually an undocumented prop for SquarePaymentForm for sandbox that you need to set sandbox={true} in order for it to target the Sandbox.

I guess it would be possible to just parse the Application ID for whether the id contains "sandbox" if we wanted to be clever about it.

For now, you just need to set that boolean prop on SquarePaymentForm

from react-square-payment-form.

mootrichard avatar mootrichard commented on July 20, 2024

Also looks like this should be fixed by #24

from react-square-payment-form.

stephtaylor avatar stephtaylor commented on July 20, 2024

It looks like v0.3.0 (sandbox support) was published, but the changes didn't make it to the doc sites. This should be fixed in the new v0.4.0 release.

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.