- we will use razorpay to make payment from our app
- it supports local and international payment system to make payment
add dependency in project
implementation("com.razorpay:checkout:1.6.20")
- create account on https://x.razorpay.com/welcome if you dont have
- go to dashboard from your profile
- go to accounts and settings
- go to api keys
- generate one api key to make transaction
- copy that api key for later use
- go to github page from above and
- go to app / src / main / java / com / razorpay / sampleapp
- from this add all function from paymentActivity.kt file
- call startPayment() function on button to start / intialise built in payment system from razor pay
- In this method change / provide value for key , This will be shown in payment gateway
=⇒ additinally
- in payment method we need to provide our generated api key
- details about product and price to make payment