razorpay / razorpay-android-custom-sample-app

Sample app to demonstrate the custom UI integration
MIT License
13 stars 9 forks source link

Provide helper methods for building payloads #11

Closed Aditya94A closed 3 years ago

Aditya94A commented 4 years ago

How about some helper methods that take in only the arguments required to build payload and simply return the payload object? This would be a much better approach when we consider building a more helpful example that would scale easily in real apps.

image

fun getNetBankingPayload(...) : JSONObject {}

fun getWalletPayload(...) : JSONObject {}

Happy to elaborate more if you'd like.

sumedht commented 3 years ago

@AdityaAnand1 For this any way we need to pass customer & transaction details. If u can elaborate it, will be helpful to understand