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

[Explore] Redirect to Gpay & Back with data #20

Open
pocha opened this issue Dec 12, 2023 · 1 comment
Open

[Explore] Redirect to Gpay & Back with data #20

pocha opened this issue Dec 12, 2023 · 1 comment

Comments

@pocha
Copy link
Contributor

pocha commented Dec 12, 2023

We need functionality where the user can come to Kilvish, click on a pay button which launches a UPI app & then post payment, gets redirected back to Kilvish with payment screenshot & amount. This issue to explore the same.

Steps

  • Setup the app. Go through the app flow - registration, home & detail screen. Also, sharing an image to the app will open handle_share screen with the image shown
  • The Add Expense button on Home screen should be changed to Pay & it should launch Gpay
  • Once payment is done in Gpay, the control should come back to the app & handle_share screen should show with the image of the payment transaction done.
@pocha
Copy link
Contributor Author

pocha commented Dec 12, 2023

@Ruchi71 I am perfectly fine with using platform specific code in flutter. Eg platform.invokeMethod('getBatteryLevel') invokes the android specific getBatteryLevel() function

The gpay launch code in Android

How to launch an android activity & then return result as mentioned here . This is a bit tricky as we dont know what gpay implements & hope for it that it will return. This part need testing.

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