-
Notifications
You must be signed in to change notification settings - Fork 17
Generate deeplinks instead of calling Cashtab directly #611
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
base: master
Are you sure you want to change the base?
Conversation
Cashtab will still be called via a redirection if no app handles the link first. This makes this code compatible with both mobile and desktop with no special case. Works together with PayButton/paybutton-server#1106.
📝 WalkthroughWalkthroughThe pull request adds a Changes
Sequence DiagramsequenceDiagram
participant User
participant Widget as Widget Component
participant Converter as BIP21 Converter
participant Cashtab as Cashtab Payment
User->>Widget: Click PayButton (XEC Address)
Widget->>Widget: handleButtonClick triggered
Widget->>Converter: convertBip21ToDeeplink(bip21Url)
Converter-->>Widget: deeplink URL
Widget->>Cashtab: openCashtabPayment(bip21Url, deeplink)
Cashtab-->>User: Open Payment App
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Cashtab will still be called via a redirection if no app handles the link first. This makes this code compatible with both mobile and desktop with no special case.
Works together with PayButton/paybutton-server#1106.
Summary by CodeRabbit