razorpay / razorpay-android-sample-app

Sample app demonstrating integration of Razorpay checkout
MIT License
88 stars 90 forks source link

Support for Jetpack compose #363

Open Sagar0-0 opened 1 year ago

Sagar0-0 commented 1 year ago

Describe the feature you'd like:

Easy support for Jetpack compose integration.

Suggested implementation:

The Open method in Checkout object should take PaymentResultWithDataListener as parameter instead of activity. That way we can easily integrate Razorpay with Jetpack compose application.

Describe alternatives you've considered:

The Open method in Checkout object should take PaymentResultWithDataListener as parameter instead of activity. That way we can easily integrate Razorpay with Jetpack compose application.

Teachability, Documentation, Adoption, Migration Strategy:

We can pass the listener, context and jsonObject.