Skip to content

Add SEP-07 transaction request support#68

Merged
sozidatel merged 57 commits into
masterfrom
feat-sep-7
Nov 10, 2024
Merged

Add SEP-07 transaction request support#68
sozidatel merged 57 commits into
masterfrom
feat-sep-7

Conversation

@troggy

@troggy troggy commented Oct 24, 2024

Copy link
Copy Markdown
Contributor

What was done here:

closes #46

ebma and others added 30 commits June 2, 2020 17:01
when it is opened by the PaymentAccountSelectionDialog
Co-authored-by: Andy Wermke <andy@satoshipay.io>
The onCancel prop was not used before so now it indicates
whether the payment form should show a dismiss button or not
ebma and others added 25 commits January 20, 2021 15:50
Setting padding-right and -left to zero removes the shadows and
looks weird
which combines handling payment and transaction requests
transaction-request string are translated only for RU locale for now. For Spanish and Italian locales
english version is used (TODO: translate)
…stalling-protocol-handler-for-sep-7' into feat-sep-7
@troggy troggy marked this pull request as ready for review October 24, 2024 15:54
@troggy

troggy commented Oct 24, 2024

Copy link
Copy Markdown
Contributor Author

The app should handle opening of web+stellar:tx and web+stellar:pay URIs now.

Should be working in the following environments:

  • web (npm run dev in web/). Tested in Brave(Chromium) and Firefox
  • electron app (npm run dev). Tested on MacOS only.. Please test on Windows and Linux
  • android app (npm run build:android in cordova/). Tested in simulator and real device (Android 11)
  • iphone app. Not tested

How to test:

  • on the first run the app might ask you to install itself as a web+stellar protocol handler. Only for web and electron, no question on mobile device (by design)
  • to test web+stellar:pay: generate payment request with https://eurmtl.me/seller/GCSAXEHZBQY65URLO6YYDOCTRLIGTNMGCQHVW2RZPFNPTEJN6VN7TFIN (payment goes to TFM, or replace with your address), click link on the bottom when testing on web/electron. Scan QR code when testing on mobile device. Example link: web+stellar:pay?destination=GCSAXEHZBQY65URLO6YYDOCTRLIGTNMGCQHVW2RZPFNPTEJN6VN7TFIN&amount=1&asset_code=EURMTL&asset_issuer=GACKTN5DAZGWXRWB2WLM6OPBDHAMT6SJNGLJZPQMEZBUR4JUGBX2UK7V&memo=Donate+from+Sunce&memo_type=MEMO_TEXT
  • to test web+stellar:tx: create XDR with any operation for one of your wallets and type the following URI in a browser: web+stellar:tx?xdr=. Or use my example: web+stellar:tx?xdr=AAAAAgAAAADHzEa22QXTfQ7GJlrAvUPajqOTqBLMsfUGoXCr7Q7kjgAAAGQC/0Q8AAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAACgAAAAR0ZXN0AAAAAQAAAAIxMQAAAAAAAAAAAAA= (you won't be able to sign though)

@sozidatel sozidatel merged commit 3f5985b into master Nov 10, 2024
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

Successfully merging this pull request may close these issues.

Add support for web+stellar URI scheme (SEP-07)

4 participants