Skip to main content

Shopify – SADAD Payment Gateway Integration

Step 1: Executive Overview

Overview of installing and integrating the SADAD Payment Gateway within Shopify. The document covers installation workflows, environment configuration, payment lifecycle architecture, order status mapping, refund rules, error handling matrices, and enterprise monitoring capabilities.

Step 2: Merchant Installation Workflow

  • Navigate to Shopify App Store: https://apps.shopify.com/sadad-qa
  • Click Install App via Shopify Admin.
  • shopify
  • You will be redirected to Payment method activation page where you will be prompted to activate it.
  • shopify
  • System redirects automatically to the Integration setup page.
  • shopify

Step 3: Integration Configuration

  • Enter the Merchant ID and Secret Key provided by SADAD.
  • Select the desired environment: Sandbox (Testing) or Live (Production).
  • Only one environment can be active at a time.
  • Merchants may update their credentials at any time as required.
  • Prerequisite: The Shopify checkout domain must be whitelisted in your merchant panel under both the test and live key domain settings: {Sadad Merchant ID}.spaycheckout.sadad.qa
shopify shopify shopify

Step 4: Payment Flow from customer

Customer → Shopify Checkout → SADAD Payment Gateway → Bank Authorization → SADAD Response → Shopify Order Creation → Merchant Dashboard Update

Step 5: Payment Lifecycle Mapping

StepActorActionResult
1CustomerSelect Product & CheckoutCheckout initiated
2ShopifyRedirect to SADADPayment session created
3CustomerEnter Card DetailsAuthorization request
4BankAuthorize / RejectResponse sent
5SADADReturn status to ShopifyOrder update
6ShopifyCreate Order (Success)Transaction recorded

Step 6: Order Status Mapping

ScenarioShopify StatusSADAD StatusCustomer Experience
Successful PaymentPaidSuccessOrder Confirmed
Card FailureNot CompletedFailedRetry Payment
User CancelledIncompleteFailedCheckout Cancelled
Server Error (Amount Deducted)Order Not CreatedAuto RefundRefunded Automatically
Refund InitiatedRefundedRefundedRefund Notification

Step 7: Refund Rules

  • Full and partial refunds supported
  • Refund value cannot exceed original order amount.
  • Once fully refunded, additional refunds are blocked.
  • Refund status synchronized across Shopify and SADAD systems.

Step 8: Error Handling Matrix

Error TypeExample ScenarioSystem Handling
Card ErrorInsufficient funds / expired cardTransaction marked failed
User AbandonmentUser leaves payment pageStatus updated as failed
API TimeoutServer response delayRetry or mark pending
Server FailurePayment deducted but no orderAuto refund within ~30 minutes