Paymish Loading Docs Preparing guides, collections, and live API references...
Paymish Docs

Initialize Transaction

Section Overview

Endpoints

2 endpoints in this collection.

Authentication

Review each endpoint for its auth requirement before implementation.

What this section covers

  • Create checkout sessions for one-time payments.
  • Attach references and metadata to customer payment attempts.
  • Prepare a payment before redirecting the user to Paymish.

Method mix

POST 2

Recommended Workflow

1

Build a backend payload containing amount, currency, customer details, and reference.

2

Send the initialize request from your server and persist the returned transaction identifiers.

3

Redirect the customer or continue the payment flow using the returned details.

Implementation advice: start from the section workflow, then open the specific endpoint page for parameter details and language examples.

Implementation Readiness

Before You Start

Prerequisites

  • Prepare the backend payload with the exact amount, customer details, reference, and any metadata your reconciliation flow depends on.
  • Decide how you will persist the Paymish transaction identifiers alongside your internal order, invoice, or checkout record.
  • Make sure your application has a clear post-initialize flow for redirecting the customer and later verifying final payment status.
Launch Safely

Implementation Checklist

  • Generate one stable reference per payment attempt and reuse it for later verification and support lookups.
  • Store the initialize response before redirecting the customer so you do not lose the Paymish transaction context.
  • Treat the first successful initialize call as the start of the payment flow, not the final payment confirmation.
Know It Works

Success Signals

  • Each checkout attempt maps cleanly to one Paymish reference and one internal order or invoice.
  • Support teams can look up a payment attempt from either your internal record or the Paymish transaction reference.
  • Customers are redirected through a reliable flow and final payment confirmation still happens from your backend.

Operational Guidance

Avoid These

Common Pitfalls

  • Generating a new reference every time a customer refreshes the page and fragmenting one checkout into many payment attempts.
  • Treating initialization success as payment success before verification or webhook confirmation happens.
  • Redirecting the customer without persisting the initialize response, which makes later reconciliation difficult.
Operate Better

Operational Notes

  • Separate payment initialization from payment confirmation so retries, customer returns, and webhook-driven updates can all be handled safely.
  • Keep enough internal metadata with each initialized transaction to support reconciliation, refunds, and support investigations later.
  • Expose transaction reference and initialization state in your internal tools so support teams can diagnose checkout issues without raw logs.
Production tip: treat this collection as an end-to-end workflow, not just a list of endpoints. Your internal validation, logging, support process, and retry behavior matter as much as the request itself.

Endpoints In Initialize Transaction

Language Implementation Notes

Python

Well suited for checkout orchestration where initialization, verification, and later reconciliation all run through one backend service.

Node.js

Use Node.js on the server to build checkout payloads and redirect flows, but keep final payment confirmation out of frontend-only logic.

PHP

Wrap initialize and verify calls in one payment service class so references, metadata, and redirect handling stay consistent.

cURL

Useful for understanding payload and response shape during checkout debugging, but production flows should still persist references server-side.

Next: open any endpoint in this section to see the full request guide and copy-ready examples in all four languages.