Try with Apifox
Import this repo’s collection; contract via OpenAPI YAML
This repository ships two importable artifacts with different jobs:
| File | Role |
|---|---|
apifox/9x-Paynet-OpenAPI-AccessKey.postman_collection.json | Executable cases — assertions + HMAC pre-request scripts |
openapi/9x-paynet-openapi-entry.openapi.yaml | Contract — fields, examples, error notes |
Step-by-step ops (env vars, flags, case order) live in
apifox/TESTING_GUIDE.md — that is the lab manual, not this site’s narrative.
Import
- Apifox → Import → Postman → pick the collection JSON
- Optionally import the OpenAPI YAML into a separate folder for schema reference — do not overwrite executable requests
- Set env:
baseUrl,app_id, merchant/store, etc. - Recompute app RSA2
signafter every body change; morph-2key_signcan be filled by collection scripts fromsecret
Collection layout (aligned with the contract)
- Admin — RSA2 only: create clerk / manager, list, rotate, revoke
- Morph-2 assertions — missing key, bad sign, wrong store, clerk vs manager refund, rotate/revoke aftermath
- Morph-1 payment samples — optional unified order / query
These cases exercise the same methods and error codes as the contract — not a second API.
How this relates to the docs
- Concepts & conventions: Concepts
- Field authority: API Reference and
openapi/*.yaml - Click send / assert: Apifox collection +
TESTING_GUIDE.md