custom payment methods #382

Open
asmogo wants to merge 1 commit from asmogo/generic-payment-method into main
asmogo commented 2026-05-27 21:57:04 +00:00 (Migrated from github.com)

support custom payment methods not defined in a dedicated NUT.

support custom payment methods not defined in a dedicated NUT.
robwoodgate (Migrated from github.com) reviewed 2026-05-28 11:18:11 +00:00
robwoodgate (Migrated from github.com) left a comment

I think this is a fantastic step forward for wallets to be able to better support unknown methods - I've added some suggested tweaks to the base structs to make life even better.

I think this is a fantastic step forward for wallets to be able to better support unknown methods - I've added some suggested tweaks to the base structs to make life even better.
@ -104,0 +120,4 @@
### Websocket Notifications
Custom methods **MAY** support websocket subscriptions via [NUT-17][17] with kind `"{method}_mint_quote"`.
robwoodgate (Migrated from github.com) commented 2026-05-28 10:42:03 +00:00
Related: https://github.com/cashubtc/nuts/pull/372
@ -206,0 +215,4 @@
### Websocket Notifications
Custom methods **MAY** support websocket subscriptions via [NUT-17][17] with kind `"{method}_melt_quote"`.
robwoodgate (Migrated from github.com) commented 2026-05-28 10:42:35 +00:00
Related: https://github.com/cashubtc/nuts/pull/372
robwoodgate commented 2026-05-28 11:31:44 +00:00 (Migrated from github.com)

Sorry @asmogo - I questioned an earlier draft that included method in the quote structs (thinking mint and wallet know by virtue of the endpoint used to request it), but this related issue highlights that for WS, and especially with the suggestion on harmonizing the base structs for custom methods, the distinction is easy to blur/lose.

So maybe we DO need to include method: <str>, in the quote structs for both mint and melt.

Sorry @asmogo - I questioned an earlier draft that included `method` in the quote structs (thinking mint and wallet know by virtue of the endpoint used to request it), but [this related issue](https://github.com/cashubtc/nuts/issues/378) highlights that for WS, and especially with the suggestion on harmonizing the base structs for custom methods, the distinction is easy to blur/lose. So maybe we DO need to include `method: <str>,` in the quote structs for both mint and melt.
robwoodgate commented 2026-05-28 13:32:27 +00:00 (Migrated from github.com)

Related https://github.com/cashubtc/nuts/pull/377

which adds the amount_oaid, amount_issued, updated_at parms to default quote structs

Related https://github.com/cashubtc/nuts/pull/377 which adds the `amount_oaid`, `amount_issued`, `updated_at` parms to default quote structs
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin asmogo/generic-payment-method:asmogo/generic-payment-method
git switch asmogo/generic-payment-method

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff asmogo/generic-payment-method
git switch asmogo/generic-payment-method
git rebase main
git switch main
git merge --ff-only asmogo/generic-payment-method
git switch asmogo/generic-payment-method
git rebase main
git switch main
git merge --no-ff asmogo/generic-payment-method
git switch main
git merge --squash asmogo/generic-payment-method
git switch main
git merge --ff-only asmogo/generic-payment-method
git switch main
git merge asmogo/generic-payment-method
git push origin main
Sign in to join this conversation.
No description provided.