Skip to main content
Shopify’s Payments Apps API lets you bring your own payment provider to the Shopify checkout. When a customer completes checkout, Shopify sends the payment details to your app’s backend, and your app processes the charge through Accelebit. This guide covers everything you need to build and configure that integration.

Architecture

The sequence below shows how Shopify, your app, and Accelebit interact during a checkout.

Prerequisites

Before you start, make sure you have:
1

Create the Shopify app and configure endpoints

Set up your Shopify app with the Payments App extension. Register the following endpoints in your app configuration:
2

Handle payment sessions

When a customer checks out, Shopify sends a payment session to your app. Extract the card and billing details from the session and forward them to Accelebit. Resolve or reject the Shopify session based on the result.
3

Handle 3DS callbacks

When 3DS completes, Accelebit redirects the customer back to your returnUrl. Look up the payment by merchant reference, then resolve or reject the Shopify session accordingly.
4

Handle refunds

When a merchant issues a refund from the Shopify admin, Shopify sends a refund request to your app. Forward the refund to Accelebit using the stored transaction ID.
5

Configure webhooks in the Accelebit Dashboard

Set up an Accelebit webhook endpoint so your app receives real-time payment status updates. This keeps Shopify order statuses accurate even if the customer closes their browser during the 3DS challenge.In the Accelebit Dashboard, add a webhook URL pointing to your app:
Subscribe to the following events:
  • payment.captured
  • payment.failed
  • refund.created
See Webhooks for signature verification details.

Testing

Before going live, verify your integration end-to-end:
  1. Use your Accelebit test secret key (smtgw_sk_test_...).
  2. Use a Shopify development store.
  3. Use card number 4111111111111111—this processes successfully in test mode.
  4. Issue a refund from the Shopify admin and confirm it processes through Accelebit.