feat(engine): add SEP-31 cross-border direct payment protocol support
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- backend-api-design, payments
Research direction
Start by reading the SEP-31 specification and the existing SEP implementations under engine/app, then inspect engine/app/main.py and engine/app/sep1.py for registration and discovery patterns. The issue names engine/alembic/versions/ and engine/tests/test_sep31.py; use those to understand the data model and expected flow. Done means the listed endpoints, state transitions, signed webhooks, and full-flow tests meet the acceptance criteria.
Written by the indexing model from the issue text.
Description
Context
Cross-border payment providers on Stellar use SEP-31 (Direct Payment API) for anchor-to-anchor remittances paired with SEP-12 KYC and SEP-38 firm quotes. Adding a local SEP-31 implementation enables fintech teams to test sending-anchor flows deterministically against SEPBox.
Scope & Target Files
- Create
engine/app/sep31.pyand register inengine/app/main.py - Update
engine/app/sep1.py(stellar.toml) withDIRECT_PAYMENT_SERVER - Add Alembic migration in
engine/alembic/versions/and tests inengine/tests/test_sep31.py
Acceptance Criteria
- Implement
GET /sep31/infoadvertising receive assets (USDC,XLM) and required sender/receiver KYC field schemas. - Implement authenticated
POST /sep31/transactionssupportingamount,asset_code,quote_id,sender_id, andreceiver_id. - Implement
GET /sep31/transactions/{id}and a simulation transition endpoint for advancingpending_sender -> pending_receiver -> completed. - Trigger signed HMAC webhooks on state transitions and cover the full flow in
engine/tests/test_sep31.py.
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 19h 43m
- Merged PRs (30d)
- 5
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sepbox-dev/sepbox
-
complexity: trivial engine good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
sepbox-dev/sepbox#19 ·
-
complexity: trivial contracts good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
sepbox-dev/sepbox#18 ·
-
complexity: trivial good first issue inspector
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sepbox-dev/sepbox#17 ·
-
complexity: medium engine
Difficulty 4/5 3-5 days Newbie friendliness 52/100
sepbox-dev/sepbox#13 ·
-
complexity: medium engine
Difficulty 3/5 1-2 days Newbie friendliness 76/100
sepbox-dev/sepbox#12 ·
All issues in sepbox-dev/sepbox
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day