Documentation Index
Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
Use this file to discover all available pages before exploring further.
Shift4 is a global payment processing company. It provides integrated payment solutions for merchants in industries including hospitality, retail, restaurants, and e-commerce. The platform supports card payments with advanced features like tokenization, end-to-end encryption, delayed capture, partial refunds, recurring billing, digital wallets, and alternative payment methods across multiple currencies and countries.
Setup
To set up your Shift4 account, fill in the form on the Shift4 website. Once your account is active, ask your Shift4 representative to turn off the BROWSER_FINGERPRINT_BLOCK feature, which is required for the connector to pass browser fingerprint data.
Credentials
To configure a Shift4 connection, you need to set the API Secret Key.
This credential can be found in the Shift4 dashboard
under Settings -> Developer -> API Keys.
Connector configuration
After setting up your Shift4 connector in the dashboard, configure how transactions are routed to it. Choose one of the following options:
- Using Flow - Configure Shift4 as the target connector in Flow to automatically route card transactions to this connector
- Using the API - Explicitly set the
payment_service_id parameter to the Shift4 connector ID when creating transactions. This overrides any Flow routing rules.
The connector ID can be found in the dashboard under Connections -> Configured connections.
Features
Shift4 supports the following features:
- Zero auth - Verify a card without charging it
- Delayed capture - Authorize a payment and capture it at a later time
- Partial capture - Capture a portion of the authorized amount
- Partial refunds - Refund a portion of the captured amount
- Void - Cancel an authorized transaction before capture
- Digital wallets - Support for Apple Pay, Google Pay, and other digital wallet integrations
- Network tokens - Use network-level tokenization for enhanced security and approval rates
- 3-D Secure - Support for pass-through 3DS authentication
- Webhooks - Receive asynchronous payment updates
- Deep linking - Navigate directly to a transaction in the Shift4 dashboard
- Transaction sync - Automatic synchronization of transaction status updates
- Incremental authorization - Increase an existing authorized amount
- Payment method tokenization - Store payment methods outside of transactions
Supported countries
Shift4 supports transactions from buyers in the following countries:
| Country code | Country code | Country code | Country code | Country code | Country code | Country code | Country code |
|---|
AE | AL | AM | AO | AR | AT | AU | AW |
AZ | BA | BB | BD | BE | BG | BH | BM |
BN | BO | BR | BS | BW | BY | BZ | CA |
CH | CN | CO | CR | CU | CY | CZ | DE |
DJ | DK | DO | DZ | EE | EG | ES | ET |
FI | FJ | FK | FR | GB | GE | GH | GI |
GM | GN | GR | GT | GY | HK | HN | HR |
HT | HU | IE | IL | IN | IQ | IS | IT |
JM | JO | JP | KE | KG | KH | KM | KR |
KW | KY | KZ | LA | LB | LK | LT | LU |
LV | LY | MA | MD | MK | MM | MN | MO |
MR | MT | MU | MV | MW | MX | MY | MZ |
NA | NG | NI | NL | NO | NP | NZ | OM |
PA | PE | PG | PH | PK | PL | PT | PY |
QA | RO | RS | RU | RW | SA | SB | SC |
SE | SG | SH | SI | SK | SL | SO | SR |
ST | SV | SZ | TH | TN | TO | TR | TT |
TW | TZ | UA | UG | US | UY | UZ | VE |
VN | VU | WS | YE | ZA | ZM | | |
Supported currencies
Shift4 supports processing payments in the following currencies:
| Currency code | Currency code | Currency code | Currency code | Currency code | Currency code | Currency code | Currency code |
|---|
AED | ALL | AMD | AOA | ARS | AUD | AWG | AZN |
BAM | BBD | BDT | BHD | BMD | BND | BOB | BRL |
BSD | BWP | BYN | BZD | CAD | CHF | CNY | COP |
CRC | CUP | CZK | DJF | DKK | DOP | DZD | EGP |
ETB | EUR | FJD | FKP | GBP | GEL | GHS | GIP |
GMD | GNF | GTQ | GYD | HKD | HNL | HTG | HUF |
ILS | INR | IQD | JMD | JOD | JPY | KES | KGS |
KHR | KMF | KRW | KWD | KYD | KZT | LAK | LBP |
LKR | LYD | MAD | MDL | MKD | MMK | MNT | MOP |
MRU | MUR | MVR | MWK | MXN | MYR | MZN | NAD |
NGN | NIO | NOK | NPR | NZD | OMR | PAB | PEN |
PGK | PHP | PKR | PLN | PYG | QAR | RON | RSD |
RUB | RWF | SAR | SBD | SCR | SEK | SGD | SHP |
SLE | SOS | SRD | STN | SVC | SZL | THB | TND |
TOP | TRY | TTD | TWD | TZS | UAH | UGX | USD |
UYU | UZS | VND | VUV | WST | XAF | XCD | XCG |
XOF | XPF | YER | ZAR | ZMW | | | |
Incremental authorization
Availability varies by payment method and region.
| Payment method | Availability |
|---|
| Digital Wallets | Not available |
| Network Tokens | Available for merchants using EU-based end processors. Not available for end processors in the US or CA |
Integration
To accept card payments with Shift4, use one of Gr4vy’s client-side integration methods to securely collect card details. Due to PCI compliance requirements, card data should never be sent directly to your servers.
You can integrate using:
- Embed - A pre-built, customizable payment form that handles the complete payment flow
- Secure Fields - Embed card input fields for building custom payment forms while maintaining PCI compliance
- Mobile SDKs - Native SDKs for iOS, Android, React Native, and other platforms
These methods handle card data collection and tokenization. Once the card details are collected and tokenized, create a transaction through the Gr4vy API, which automatically routes the payment to your configured Shift4 connection based on your Flow rules or explicit payment_service_id parameter.
Webhooks
Shift4 sends webhooks to notify you of transaction status changes. Configure your webhook endpoint in the Shift4 dashboard so that Gr4vy can receive real-time transaction updates and keep transaction statuses in sync.
To configure webhooks in Shift4:
- Log in to your Shift4 merchant dashboard
- Click on your user in the top right corner and go to Settings
- Go to Developer -> Webhooks
- Click on ADD ENDPOINT and paste the webhook endpoint configured for you by Gr4vy
When event delivery fails for a given webhook URL, delivery of all subsequent events to that URL is blocked until the failed delivery is successfully retried. Events are always delivered in the order they were created, so a failed delivery prevents later events from being sent and would result in out-of-order delivery.
Testing
For testing in sandbox environments, you can use standard test card numbers. Shift4 supports industry-standard test cards for simulating different transaction scenarios:
Successful transactions:
- Visa:
4242 4242 4242 4242
- Mastercard:
5555 5555 5555 4444
- American Express:
3782 822463 10005
Use any future expiry date and any 3-digit CVV (4 digits for American Express).
For more test scenarios and additional card numbers, refer to the Shift4 testing documentation or contact your Shift4 representative.