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 theBROWSER_FINGERPRINT_BLOCK feature, which is required for the connector to pass browser fingerprint data.
Credentials
To configure a Shift4 connection, you need to set theAPI 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_idparameter to the Shift4 connector ID when creating transactions. This overrides any Flow routing rules.
Capabilities
Supported countries
Supported currencies
Incremental authorization
Availability varies by payment method and region.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
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
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