Skip to content

Receiver create_session should accept an amount param #895

Description

@benalleng

In our liana integration in creating our receiver session @arminsabouri realized that it would be nice to allow the amount as a param to be passed to the session for rust-payjoin to handle the bip-21 amount creation instead of leaving that up to the wallet.

The code is minimal but considering it is required it seems like a footgun to require the integration dev to know to do this after starting a receiver session.

let mut pj_uri = session.pj_uri();
pj_uri.amount = Some(amount);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions