Posts

Showing posts with the label Razorpay

Razorpay with Android in Kotlin

Image
Overview Razorpay is basically used to conduct various type of transactions. Follow the following steps Create your merchant in Razorpay and download Key ID and Key Secret from the following link https://dashboard.razorpay.com/app/keys Download " checkout-1.6.15.aar " from Maven website and put it inside "libs" folder of the project Add the required dependency in gradle.build (Module) file implementation "com.razorpay:checkout:1.6.12" Add the following code in proguard-rules.pro -keepclassmembers class * { @android.webkit.JavascriptInterface <methods> ; } -keepattributes JavascriptInterface -keepattributes *Annotation* -dontwarn com.razorpay.** -keep class com.razorpay.** {* ; } -optimizations ! method/inlining/* -keepclasseswithmembers class * { public void onPayment*(...) ; } Create an Order in Server Initiate Payment class MainActivity : AppCompatActivity() , PaymentResultListener { private var broadcastReceiver : RzpTokenRe...