Extension need jazz cash payment gateway

please make a jazzcash payment gateway extension

MainActivity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

    BuyNow = findViewById(R.id.buyNow);

    BuyNow.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Intent intent = new Intent(MainActivity.this, PaymentActivity.class);
            intent.putExtra("price", "1500.00");
            startActivity(intent);
        }
    });

}

PaymentActivity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_payment);

    webView = findViewById(R.id.activity_payment_webview);

    Intent intentData = getIntent();
    String price = intentData.getStringExtra("price");

    jazzCash = new JazzCash(this, this, ResponseActivity.class, webView, "Pass your JazzCash MerchantID here", "Pass your JazzCash password here", "Pass your JazzCash IntegritySalt Value here", "Pass your jazzCash Returnm Url here", "Pass the price here");

    jazzCash.integrateNow();


}

If You wanna pass or save custom values then use the following code (max 5 values)

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_payment);

        webView = findViewById(R.id.activity_payment_webview);

        Intent intentData = getIntent();
        String price = intentData.getStringExtra("price");

        jazzCash = new JazzCash(this, this, ResponseActivity.class, webView, "Pass your JazzCash MerchantID here", "Pass your JazzCash password here", "Pass your JazzCash IntegritySalt Value here", "Pass your jazzCash Returnm Url here", "Pass the price here", "Add Custom Value if you wanna pass here");

        jazzCash.integrateNow();


    }

Add the following code in ResponseActivity.java

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_response);
        responseText = findViewById(R.id.responseText);

        if (getIntent() != null) {

            jazzCashResponse = (JazzCashResponse) getIntent().getSerializableExtra(Constants.jazzCashResponse);

            responseText.setText(jazzCashResponse.getPpResponseMessage());
        }


    }


https://github.com/nomansoftpvt/jazzcash-android-payment-gateway

Please DM me, I can build JazzCash payment gateway extension for you.

IMG-20231218-WA0008

Jazzcash extension blocks

Made by GPT :joy: