Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

programmatic handling of orderinstructions message #359

Open
jiyoonie9 opened this issue Jul 31, 2024 · 1 comment
Open

programmatic handling of orderinstructions message #359

jiyoonie9 opened this issue Jul 31, 2024 · 1 comment

Comments

@jiyoonie9
Copy link
Contributor

          > hmm, programmatically, how do you envision a wallet app handling order instructions? Present the text from the message to the user? Then what? How does the Wallet know once those instructions have been executed? Do they wait for the PFI to provide an `OrderStatus` or `Close`?

orderinstructions contains payin and payout, with link and/or instruction fields

if there's a payment link that alice needs to navigate to in order to fulfill payin, the payin object of orderinstructions should be populated. once the payment is done, the wallet should detect completion and redirect back to the wallet view where alice is now waiting for PFI to confirm that her payin has been received, and PFI will initiate payout.

cc-ing @ethan-tbd for how didpay accommodated redirect after payin was completed

Originally posted by @jiyoontbd in #355 (comment)

@ethan-tbd
Copy link
Contributor

as of today, didpay has only implemented support for the payment link order instructions. this still needs to be documented in the spec clearly, but didpay knows when the payment link has been executed when it sees a finish.html in the url of the payment link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants