Add an optional expires_at parameter to SEP-7 pay requests
#2074
shawnmuggle
started this conversation in
Stellar Ecosystem Proposals
Replies: 2 comments
|
On the question at the end, I'd make capping the upper time bound at |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Motivation
A merchant may quote an amount that is valid only until a particular time. In the Freighter Mobile discussion, a merchant described using a short rate lock. A payer can scan the QR code while the quote is valid, then approve the payment after the quote has expired.
Proposed change
Add one optional parameter to the SEP-7
payoperation:expires_at2030-01-15T12:20:00ZA supporting wallet checks the deadline when opening the request and again immediately before signing. At or after the deadline, it stops the signing flow and prompts the payer to obtain a fresh quote. If
expires_atis absent, the existing flow continues as usual. For a signed URI, the originator includesexpires_atbefore generating the signature so the deadline is covered by the existing SEP-7 verification mechanism.Example
A traveler scans a QR code to pay for a flight from Dubai to Barcelona. The following parameters illustrate the request; the destination is a placeholder:
The wallet can show the booking reference
FL-204, the description frommsg, and a hint such as “Quote expires in 20 minutes.” Showing the description is optional. The merchant chooses the memo value and type: this example usesMEMO_TEXT, while a merchant using numeric reconciliation can continue to specifyMEMO_ID.Feedback requested
Would a deadline checked immediately before signing cover your use case? A transaction signed just before expiry could still reach the ledger afterward. For merchants with a strict settlement cutoff, should a supporting wallet also cap the transaction’s upper time bound at
expires_at?Older wallets may ignore the parameter, so merchants would still need a policy for late payments.
All reactions