MooPay Open MooPay

Pay window

Understand the signing page and its API.

The pay window lives at /p/<id>. It is built from web/pay.ts and web/pay.html. The page talks to the server at /papi/<id>/....

Endpoints

PathUse
GET /papi/<id>The intent view.
GET /papi/<id>/statusPayment status.
POST /papi/<id>/estimateA price estimate.
POST /papi/<id>/quoteA real quote with a deposit address.
POST /papi/<id>/paidTell the server the payer sent.
POST /papi/<id>/payoutSet the payout wallet for staking.
POST /papi/<id>/cancelCancel before signing.
GET /papi/<id>/sol-check, POST sol-send, GET blockhashSolana helpers.

Intent types

TypeWhat it is
PaySend to a receiver.
stakeStake into rNEAR with a payout wallet.
fundAdd money to the agent wallet.
callSign a contract call, like unstake or withdraw.

Wallet pop-ups

Browsers only allow pop-ups opened by a click. Popup wallets must open from the iframe, so the page offers a Sign transaction button when a pop-up is blocked.

The window talks to the chat with postMessage so the chat can close it and show results.

Need help? support@moopay.cash