Payment using Checkout Url

When you have a backend server to generate checkout url you can use ChapaCheckoutPage.processPayment() method to process payment using checkout url.

you don't need to initialize ChapaConfiguration to use this feature

new ChapaCheckoutPage(this).processPayment("chapa-checkout-url", new ChapaCheckoutUrlCallback() {

    /**
     * Called when payment is successful
     */
    @Override
    public void onSuccess() {
        // TODO your code here
    }

    /**
     * Called when error occurred in payment
     */
    @Override
    public void onError(@NonNull ChapaError chapaError) {
        // TODO your code here
    }

    /**
     * Called when payment is canceled
     */
    @Override
    public void onCancel() {
        // TODO your code here

    }
});
ChapaCheckoutPage(this).processPayment("chapa-checkout-url",object : ChapaCheckoutUrlCallback {

 /**
  * Called when payment is successful
  */
 override fun onSuccess() {
     // TODO your code here
 }

 /**
  * Called when error occurred in payment
  */
 override fun onError(chapaError: ChapaError) {
     // TODO your code here
 }

 /**
  * Called when payment is canceled
  */
 override fun onCancel() {
     // TODO your code here
 }
})