Payment API · For developers & businesses

Payment API: add Raast QR payments to your own app

Connect your website, app or ERP to Star Logics payments with a few API calls. Create dynamic QR payments, get a webhook the instant money arrives, and track every transaction.

  • JSON over HTTPS
  • Instant webhooks
  • Engineer support
# Create a dynamic QR payment
POST /v1/payments/qr

{
  "amount": 3450,
  "currency": "PKR",
  "reference": "ORDER-1042"
}

# Response · 201 Created
{
  "id": "pay_8Fk2Qm7x",
  "status": "pending",
  "qr_payload": "000201010212…"
}
payment.paid received Rs 3,450 · just now

Illustrative example. The full API reference is shared during onboarding.

Why Payment API

Payments for the software you already have

Not every business wants to switch software. Schools, clinics, online stores, ERPs and SaaS products already have systems that work. What they are missing is a simple way to accept instant bank payments and know, automatically, when an order has been paid.

The Star Logics Payment API gives you exactly that. Your system asks for a payment and gets back a dynamic Raast QR for the exact amount. When the customer pays from their bank app, we call your webhook with the payment details, and your system marks the order as paid.

The problemWith Payment API
Customers pay a personal account and send screenshots Each payment uses a dynamic QR tied to one order
Developers check bank statements to confirm payments A webhook tells your server the moment it's paid
Reconciliation is done by hand at month end Every payment carries your order reference
Integrating payments feels heavy A few API calls, with our engineers helping you go live
Features

What the Payment API gives you

Key features of Payment API by Star Logics, designed for businesses in Pakistan.

Dynamic QR payments

Create a unique, amount-locked Raast QR for every order or invoice.

Instant webhooks

Your server is notified the moment a payment is confirmed.

Your own references

Pass your order or invoice ID and get it back with every event.

Status checks

Look up the status of any payment at any time.

Transaction reports

Reconcile payments by day, reference or status.

Secure access

Authenticated API keys and HTTPS on every request.

Any language

Works with any language or framework that can make HTTPS requests.

Raast & 1LINK

Built on Pakistan's national instant payment rails.

Engineer support

Our team helps your developers from the first call to go-live.

Prefer ready-made software?

Prefer ready-made software? Every Star Logics product already has QR payments built in, with no integration work needed.

How QR payments work

Built for teams with their own software

  • E-commerce stores
  • Schools & universities
  • Hospitals & clinics
  • ERP & accounting software
  • SaaS & subscription apps
  • Marketplaces
  • Bill collection
Getting started

How integration works

  1. 01

    Get your API keys

    We onboard your business and share your keys and the API reference.

  2. 02

    Create a payment

    Your system sends the amount and your order reference.

  3. 03

    Show the QR

    Display the dynamic QR on your checkout, invoice or app.

  4. 04

    Receive the webhook

    We notify your server the moment the customer pays.

FAQ

Payment API: frequently asked questions

Still have a question? Ask us on WhatsApp.

What can I build with the Star Logics Payment API?

You can accept Raast QR payments in your website, mobile app, ERP or billing system: create a dynamic QR for each order, get notified when it is paid, and reconcile every transaction.

How do I know when a customer has paid?

We send a webhook to your server as soon as the payment is confirmed, including your order reference, the amount and the time of payment. You can also check any payment's status through the API.

Which programming languages are supported?

Any language or framework that can make HTTPS requests and read JSON, including PHP, Node.js, Python, Java and .NET.

Is there API documentation?

Yes. The full API reference is shared during onboarding, and our engineers help your team integrate and go live.

Do customers need a special app to pay?

No. Customers pay with any banking app or mobile wallet in Pakistan that supports Raast QR.