razorpay / razorpay-flutter-customui

Razorpay Flutter Plugin for Customui
MIT License
6 stars 19 forks source link

APIs are inconsistent android <> iOS #52

Open junaid1460 opened 2 years ago

junaid1460 commented 2 years ago
  1. on iOS after submit

on success callback returns flat structure

 {
   "razorpay_signature" ...
}

on Android

 {
   data: {
       "razorpay_signature" ...
   }
}

Ideally frontend of apis should be converted to right format before returning.

  1. Another inconsistency is with upi_app_package_name

should hide implementation details of which app to choose, should not ask user to figure out which platform it is.

in android I have to pass com.**** in iOS google_pay.

  1. on android get upi apps returns a Map, on iOS a List
junaid1460 commented 2 years ago

Can we work towards a well typed front end for apis?