Download the PHP package cognito/payum_square without Composer
On this page you can find all versions of the php package cognito/payum_square. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cognito/payum_square
More information about cognito/payum_square
Files in cognito/payum_square
Package payum_square
Short Description The Payum Square payment module
License MIT
Homepage https://payum.forma-pro.com
Informations about the package payum_square
Square Payment Module
The Payum extension to purchase through Square using Elements
Install and Use
To install, it's easiest to use composer:
composer require cognito/payum_square
Build the config
Request card payment
Request Afterpay payment
Afterpay requires more information about the customer to process the payment
Check it worked
Getting the Access Tokens
Create a new app in the Square developer tools to get tokens for the above code.
To do this, go to https://developer.squareup.com/console/en/apps and create a new app.
Name the app, and skip the rest of the questions.
It will give you the Application ID and Access Token. Make sure you have it in "Production" mode so you get live payment tokens.
Click on "Locations" in the menu, and it will show you the Location ID.
Configure Apple Pay
Apple Pay requires a file to be uploaded to the server to validate the domain.
To configure this, choose Apple Pay then Web from the menu.
Click Add Domain, and in the popup type the domain you're using when taking payments. Omit any https:// at the beginning.
Download the verification file that is shown on the next screen, and upload it to the location they display.
Once uploaded (test the link yourself) click the "Verify" button and it completes the process.
License
Payum Square is released under the MIT License.