Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: On-chain Peer to Merchant (P2M) Configuration #172

Open
dimroc opened this issue May 14, 2021 · 1 comment
Open

Proposal: On-chain Peer to Merchant (P2M) Configuration #172

dimroc opened this issue May 14, 2021 · 1 comment
Assignees

Comments

@dimroc
Copy link
Contributor

dimroc commented May 14, 2021

As described in DIP 158, the P2M flow involves redirecting a customer from the merchant site to their customer VASP for payment approval. Recap:

The redirect URL is likely to be used in the Web Redirect flow which means that the customer will be redirected from the merchant's checkout page to the wallet's website to review and approve the payment.

The table below specifies the fields that should be encoded into a series of URL parameters appended to the query string.

Field Type Required? Description
vasp_address str Y Address of receiving VASP. The address is encoded using bech32. For Diem addresses format, refer to the "account identifiers" section in DIP-5.
reference_id str Y A unique identifier of this payment. It should be a UUID according to RFC4122 with "-"'s included.
redirect_url str N Encoded URL used by the wallet to redirect the customer back to the merchant

Dip 158 Appendix A

Customer VASP configuration (like redirect_url) does not exist yet

The redirect_url, and other Customer VASP configuration, is never set, and never stored. This onboarding of Customer VASPs via a registration step is required for any future P2M flows.

Solution

A DIP describing a Customer VASP registration step that sets its configuration on-chain within Move, so that Merchant VASPs are able to retrieve and send said P2M configuration data for the Web Redirect Flow. This includes but is not limited to redirect_url, image_url.

@davidiw davidiw self-assigned this May 15, 2021
@dimroc
Copy link
Contributor Author

dimroc commented May 15, 2021

Related PR: #173

@aching aching mentioned this issue Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants