Inline Card, Wallet and ACH Payments via Square
Square Web Payments embeds the Square Web Payments SDK directly into nopCommerce checkout, tokenizing card, Google Pay, Apple Pay, Afterpay/Clearpay and ACH bank transfer payments in the browser before charging them through the Square .NET SDK. No raw card data reaches the store server.
What It Does
- Card Entry Form — a Square-hosted card container embedded on the checkout payment-info step
- Google Pay — a one-tap wallet button shown when EnableGooglePay is on
- Apple Pay — a one-tap wallet button shown when EnableApplePay is on
- Afterpay/Clearpay — a buy-now-pay-later button with shipping address and shipping option change listeners
- ACH Bank Transfer — bank-account payment collected using the buyer's account holder name
- Client-Side Tokenization — the payment token and a buyer verification token are generated in the browser and posted to the server
- Authorize or Authorize-and-Capture — a TransactMode setting chooses capture-later or immediate-capture workflows
- Capture, Void and Refund — full and partial refunds are driven from the nopCommerce order page
- Currency Handling — Square charges in the primary store currency, which must be the currency of your Square location; foreign cards are accepted
- Additional Payment Fee — a fixed or percentage AdditionalFee for paying through Square
- Sandbox/Production Switch — UseSandbox automatically prefixes or strips 'sandbox-' on the Application ID
- Live Location Lookup — the Location ID dropdown is populated from the Square Locations API
- Per-Store Overrides — Application ID, Access Token, Location and each payment-method toggle can differ per store
- HTTPS Enforcement — blocks payment with a localized error when the checkout page is not served over HTTPS
How It Works
- Enter the Square Application ID and Personal Access Token, then choose a Location ID.
- Pick sandbox or production, the transaction mode, and enable Google Pay, Apple Pay, Afterpay/Clearpay or ACH as needed.
- At checkout the shopper enters card details or taps a wallet button, and the SDK tokenizes the payment in the browser.
- The token is posted to the server and charged through the Square .NET SDK.
- Admins capture, void, refund or partially refund the payment from the nopCommerce order page.
Specs & Requirements
- nopCommerce — 5.00, 4.90, 4.80, 4.70, 4.60, 4.50, 4.40, 4.30, 4.20
- Plugin type — Payment methods: a combined IPaymentMethod/IWidgetPlugin that injects the payment form and the Square.js script
- Requires — a Square account with an Application ID, a Personal Access Token and at least one business Location; checkout must be served over HTTPS
- Store setup — enable the payment method, choose Authorize or Authorize and Capture, and turn on the wallet or ACH methods to offer
- Integrations — the Square Web Payments SDK (square.js) plus the Square .NET SDK Payments, Refunds and Locations endpoints