Stage Sandbox is live. Create and retrieve payments against https://payment-gateway.learnagent.cloud with Morphosis HMAC v2. Use only issued sandbox credentials. Production availability is not part of this release.

Accept a payment with one integration

Server-to-server sandbox deposits through one payment resource. MorphosisBlock Payment API v2 gives merchants a small, provider-neutral surface for accepting a deposit on Tron Shasta:
  1. Create one payment for a merchant order.
  2. Show the returned TRX amount and deposit address to the customer.
  3. Track state with webhooks and GET /v2/payments/{payment_id}.
  4. Fulfil only after the payment is paid and your own order checks pass.
The machine-readable contract is OpenAPI 3.1. These guides explain merchant decisions around that contract without adding a second source of API truth.

What you get in the first slice

Every create request carries a signed Idempotency-Key. Monetary values use decimal strings for display and string-encoded minimum-unit values for exact accounting (minor_units for USD, sun for TRX).

Contract conventions

Integration flow

1

Obtain sandbox credentials

Ask Morphosis for a Stage Sandbox merchant profile: request key id + HMAC secret, webhook key id + HMAC secret, and a registered webhook URL.
2

Create one sandbox payment

Submit the merchant order reference and an exact USD amount to POST /v2/payments. Persist the returned payment_id before showing payment instructions to a customer.
3

Present the quoted deposit

Display the returned TRX decimal amount, its exact sun amount, and the deposit address exactly as received. Do not round, reformat, or substitute another address.
4

Track the lifecycle

Consume payment.updated events and use GET /v2/payments/{payment_id} when your system needs a fresh view.
5

Fulfil only after paid

Deliver the purchased product only after the payment state is paid and your own order checks pass.

See it working before you code

Boundary

  • Stage Sandbox only — Tron Shasta testnet funds.
  • Production cutover, SLA, and commercial terms are out of scope for this release.
  • Do not send mainnet funds to sandbox addresses.
  • Do not put signing secrets in browsers, mobile apps, or public repositories.

Continue