Integrating PublicSquare Payments with Magento
PublicSquare Magento Payments Plugin is a 1-click plugin for Magento that allows you to accept credit and debit card payments instantly.
Before You Begin
This SDK requires the use of a Publishable API Key. Go to your Developers section and click Reveal
for your Publishable Key
and copy the value.
If you have not yet created an account, schedule a demo with our team to get started.
Installation
Find the app in the Magento marketplace and install it.
Getting started
Configure Payment Method
- Navigate to Stores > Configuration in your Magento Admin panel
- Under the Sales section, select Payment Methods
- Locate the PublicSquare Payment Method settings
- Fill in the following fields:
- Checkout page payment method title: Enter "Credit/Debit Card (PSQ - Staging Keys)" or your desired title
- PublicSquare Public API Key
- PublicSquare Secret API Key
- Click Save Config in the top right corner to save the changes
Default Settings Configuration
Configure the following fields within the PublicSquare Payment Method section:
- Security Type: Set to Hosted iFrame - PCI SAQ A (default, not configurable)
- Pre-Authorization Type: Set to Test (Card number validation only) for testing purposes
- CVV Verification: Ensure this is set to Yes
- 3D Secure Authentication: Set to No (if applicable)
- Payment Capture Action: Ensure this is set to Authorize & Capture
- AVS Check: Enable this to include address and phone validation in payment requests
- Vault Enabled: Ensure this is set to Yes for card storage
Testing Setup
Test Card Details
Use the following test card for transaction testing:
- Card Number: 4242 4242 4242 4242
- Expiration Date: Any future date
- CVC: Any 3 digits
Testing Process
- Go to your Magento storefront
- Add any product to the cart and proceed to checkout
- In the payment method selection, choose the configured Credit/Debit Card (PublicSquare) option
- Enter the provided test card details to simulate a transaction
Verification
- Log in to your Magento Admin panel
- Navigate to Sales > Orders to review the order
- Confirm that the payment method displays as Credit/Debit Card (PublicSquare)
- Check for the Transaction ID, which should follow the format
pmt_XXXXXXXXXXXXXXXXXX
Additional Notes
- Ensure that the transaction status and order details are displayed accurately
- For further guidance or troubleshooting, please refer to the PublicSquare API Documentation
- If you encounter issues, ensure your API keys and configuration settings are correctly entered