Code Monkey home page Code Monkey logo

square's Introduction

The module integrates a Magento 2 based webstore with the Square payment service.
The supported merchant countries: USA, Canada, Japan, Australia, and the United Kingdom.
The module is free and open source.

Screenshots

Backend settings

How to install

Hire me in Upwork, and I will:

  • install and configure the module properly on your website
  • answer your questions
  • solve compatiblity problems with third-party checkout, shipping, marketing modules
  • implement new features you need

2. Self-installation

bin/magento maintenance:enable
rm -f composer.lock
composer clear-cache
composer require mage2pro/square:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales, e.g.: en_CA>
bin/magento maintenance:disable

How to update

bin/magento maintenance:enable
composer remove mage2pro/square
rm -f composer.lock
composer clear-cache
composer require mage2pro/square:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales, e.g.: en_CA>
bin/magento maintenance:disable

square's People

Contributors

dmitrii-fediuk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

square's Issues

«Your request did not include an `Authorization` http header with an access token.»

Your request did not include an Authorization http header with an access token.
The header value is expected to be of the format "Bearer TOKEN" (without quotation marks), where TOKEN is to be replaced with your access token (e.g. "Bearer ABC123def456GHI789jkl0")ю
For more information, see https://docs.connect.squareup.com/api/connect/v2/#requestandresponseheaders. If you are seeing this error message while using one of our officially supported client libraries, please report this to [email protected].

«Invalid value for 'capabilities', must be one of 'CREDIT_CARD_PROCESSING'»

Exception #0 (InvalidArgumentException): Invalid value for 'capabilities', must be one of 'CREDIT_CARD_PROCESSING'
#0 vendor/square/connect/lib/ObjectSerializer.php(273): SquareConnect\Model\Location->setCapabilities(Array)
#1 vendor/square/connect/lib/ObjectSerializer.php(241): SquareConnect\ObjectSerializer::deserialize(Object(stdClass), '\SquareConnect\...')
#2 vendor/square/connect/lib/ObjectSerializer.php(273): SquareConnect\ObjectSerializer::deserialize(Array, '\SquareConnect\...')
#3 vendor/square/connect/lib/Api/LocationApi.php(167): SquareConnect\ObjectSerializer::deserialize(Object(stdClass), '\SquareConnect\...', Array)
#4 vendor/square/connect/lib/Api/LocationApi.php(104): SquareConnect\Api\LocationApi->listLocationsWithHttpInfo('sandbox-sq0atb-...')
#5 vendor/mage2pro/square/Source/Location.php(23): SquareConnect\Api\LocationApi->listLocations('sandbox-sq0atb-...')
#6 vendor/mage2pro/core/Config/SourceT.php(22): Dfe\Square\Source\Location->map()

Prevalidate the bank card data client-side

The SqPaymentForm performs basic real-time validation of the values that a buyer enters into the four form fields.
If a value doesn't pass this validation (for example, if the buyer enters non-numeric characters for the card number), a CSS class is applied to the corresponding iframe.
You can create CSS rules for this class to alert the buyer to the error.
See Adjusting exterior styles for input focus and validation errors for details.

https://docs.connect.squareup.com/articles/adding-payment-form#clientsideerrors

«invalid character 'C' looking for beginning of value»

Request:

{
    "amount_money": {
        "amount": 12744,
        "currency": "USD"
    },
    "card_nonce": "CBASEFX1BZwlbC2YjEhKrIf6XDggAQ",
    "idempotency_key": "59d7e0fc05354"
}

Response: [HTTP/1.1 400 Bad Request]

{
	"errors": [
		{
			"category": "INVALID_REQUEST_ERROR",
			"code": "BAD_REQUEST",
			"detail": "invalid character 'C' looking for beginning of value (line 1, character 1)"
		}
	]
}

error frontend

Hi we are trying your module in a magento 2.3 to see if we can use it but in the checkout we can't write any credit card
imagen

can you help us?

«Cannot instantiate abstract class Df\StripeClone\Facade\Customer in mage2pro/core/Payment/Facade.php:88»

Stack trace:

#0 vendor/mage2pro/core/Core/lib/cache.php(250): Df\Payment\Facade::Df\Payment\{closure}(Object(Dfe\Square\Method), 'Df\\StripeClone\\...')
#1 vendor/mage2pro/core/Payment/Facade.php(89): dfcf(Object(Closure), Array)
#2 vendor/mage2pro/core/StripeClone/ConfigProvider.php(59): Df\Payment\Facade::s(Object(Dfe\Square\Method))
#3 vendor/mage2pro/core/StripeClone/ConfigProvider.php(47): Df\StripeClone\ConfigProvider->cards()
#4 vendor/mage2pro/core/Payment/ConfigProvider.php(56): Df\StripeClone\ConfigProvider->config()
#5 app/code\Magento\Checkout\Model/CompositeConfigProvider.php(38): Df\Payment\ConfigProvider->getConfig()

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.