The doAmazonPayment API initiates the payment inside chrome custom tab (or default browser if it is not available) where the customer is shown the amazon pay payment page. After the payment is complete and the customer closes the chrome tab, the SDK verifies the payment. After the payment is verified, the user is redirected to the application. The response is delivered through onActivityResult().

dependencies {
    //Dependencies used by all payment functions
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation ''
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

    implementation 'androidx.browser:browser:1.0.0'
public  void  doAmazonPayment(Context context, Map<String, String> params, String token, String stage)


  • context: Context object of the calling activity is required for this method. In most of the cases this will mean sending the instance of the calling activity (this).
  • params: A map of all the relevant parameters described here
  • token: The token generated from here
  • stage: Value should be either "TEST" or "PROD" for testing server or production server respectively.

© 2019 Cashfree Payments India Pvt Ltd