Create a payment
Live Stage Sandbox operation. Requires Morphosis HMAC v2 and a signed Idempotency-Key. Base URL: https://payment-gateway.learnagent.cloud.

Authorizations

X-Morphosis-Signature
string
header
required

Morphosis HMAC v2 authenticates public Payment API requests.

Join exactly seven values with one LF character and no trailing LF:

  1. v2
  2. Uppercase HTTP method
  3. Raw path and query exactly as received
  4. Unix timestamp in seconds
  5. Unique nonce
  6. Raw Idempotency-Key, or an empty line for GET
  7. Lowercase hexadecimal SHA-256 of the exact raw request body bytes

Encode the canonical string as UTF-8. Sign it with HMAC-SHA-256 and encode the signature as unpadded base64url. Reject duplicate signed headers before canonicalization.

Headers

X-Morphosis-Signature-Version
string
required

Public Payment API signature version. Duplicate values are rejected.

Allowed value: "v2"
X-Morphosis-Key-Id
string
required

Public identifier for the merchant signing key. Duplicate values are rejected.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$
X-Morphosis-Timestamp
string
required

Unix timestamp in whole seconds. Duplicate values are rejected.

Pattern: ^[0-9]{10}$
X-Morphosis-Nonce
string
required

Unique, single-use nonce. Duplicate values are rejected.

Required string length: 16 - 128
Pattern: ^[A-Za-z0-9._~-]+$
X-Morphosis-Signature
string
required

Unpadded base64url HMAC-SHA-256 signature. Duplicate values are rejected.

Pattern: ^[A-Za-z0-9_-]{43}$
Idempotency-Key
string
required

Original merchant-generated key for one logical Payment. It is signed exactly as received. Duplicate values are rejected.

Required string length: 16 - 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._~-]{15,127}$

Body

application/json
external_reference
string
required

Merchant reference retained exactly as validated and never forwarded as a private provider field.

Required string length: 1 - 128
requested_amount
object
required
metadata
object

Merchant-defined string values returned unchanged. The idempotency digest sorts original keys by ascending UTF-8 bytes and preserves each validated value exactly.

Response

Payment created with payer instructions.

A definitively created Payment with payer instructions.

payment_id
string
required
Pattern: ^pay_[0-7][0-9A-HJKMNP-TV-Z]{25}$
external_reference
string
required
Required string length: 1 - 128
status
enum<string>
required
Available options:
pending,
submission_unknown,
paid,
denied,
cancelled,
review_required
Allowed value: "pending"
requested_amount
object
required
payment_instructions
object
required
environment
string
required

Sandbox TRON Shasta environment.

Allowed value: "sandbox"
metadata
object
required

Merchant-defined string values returned unchanged. The idempotency digest sorts original keys by ascending UTF-8 bytes and preserves each validated value exactly.

created_at
string<date-time>
required
updated_at
string<date-time>
required
settlement
object
failure
object

Stable gateway failure information. It never contains private provider field names, identifiers, status codes, response bodies, or raw errors.