Developer Docs
  • 👋Get Started
  • Add Payment Methods in Optty
  • Custom API | Headless
    • 🖥️Direct API Integration
      • Environments
      • Order Flow
      • 1️⃣Create Access Token
      • 2️⃣Get APM Options
      • 3️⃣Create Order
      • 4️⃣Handle Payment Response
      • 5️⃣Refund Order
      • 🔥Handling Exceptions
  • Platforms
    • ◾BigCommerce
      • 🚀Activate Optty
      • ⚡Add Optty Widgets
        • 1️⃣Install the App
        • 2️⃣Create Widget Token
        • 3️⃣Edit Your Template
        • 4️⃣Widget Configuration
      • 💳Refunds
    • Magento 2
      • Install Optty Module
      • Configure the Optty Extension
      • One Step Checkout
    • Salesforce Commerce Cloud
      • Component Overview
      • Implementation Guide
      • Operation and Management
      • User Guide
    • 🟪WooCommerce
      • 🚀Install Optty
      • ⚡Setup Widgets
      • 💳Refunds
  • Widget
    • Widget Setup and Integration
    • Create Order Widget Integration
    • Handle Order Payment Widget Integration
  • API References
    • Create Order
      • Create Order Response
    • Refund Order
    • Void Order
    • Capture Order
    • Transaction Details
    • Create Customer Session
    • Best Practice
  • Go Live
  • Universal Payment Platform
    • Support Articles
Powered by GitBook
On this page
  • Environments
  • Sandbox Testing Environment
  • Production Environment
  • Order Flow
  1. Custom API | Headless

Direct API Integration

Using our comprehensive set of API's enables full control and the highest level of flexibility, to give your customers the choice of paying through a selection of payment options at checkout

PreviousGet StartedNextCreate Access Token

Last updated 8 months ago

Environments

Optty provides both a sandbox testing environment and a production environment for merchants and partners to use.

Sandbox Testing Environment

Authentication

https://auth.qa.optty.com/token

Merchant URL

https://api.qa.optty.com

Widget SDK URL

https://widgets.qa.optty.com/widget-loader.js

Production Environment

Authentication

https://auth.optty.com/token

Merchant URL

https://api.optty.com

Widget SDK URL

https://widgets.optty.com/widget-loader.js

Order Flow

The sequence diagram below shows the process and interactions between client-side, your server, Optty and the APM during a typical order flow.

To integrate and enable Optty at checkout during the order process, your development team will need to follow a 5 step process.

🖥️
1️⃣Create Access Token
2️⃣Get APM Options
3️⃣Create Order
4️⃣Handle Payment Response
5️⃣Refund Order