Fake/Test Payment

Fake/Test Payment

 
  • 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")
 
  1. create account on https://x.razorpay.com/welcome if you dont have
  1. go to dashboard from your profile
  1. go to accounts and settings
  1. go to api keys
  1. generate one api key to make transaction
  1. 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
  1. in payment method we need to provide our generated api key
  1. details about product and price to make payment