Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

No upi app found, in samsung mobile #8

Open
sahuisha268 opened this issue Aug 20, 2022 · 0 comments
Open

No upi app found, in samsung mobile #8

sahuisha268 opened this issue Aug 20, 2022 · 0 comments

Comments

@sahuisha268
Copy link

mentation 'com.wangsun.upi.payment:upi-payment:0.0.5' This library only gives me 1 error "No upi app found, plz install" in Samsung mobiles.

   PaymentDetail payment = new PaymentDetail(payeeVpa,payeeName,
        "","", description,String.valueOf(Double.parseDouble(amount)));
new UpiPayment(this)
        .setPaymentDetail(payment)
        .setUpiApps(newList)
        .setCallBackListener(new UpiPayment.OnUpiPaymentListener() {
            @Override
            public void onSuccess(@NonNull TransactionDetails transactionDetails) {
                Log.e("success", String.valueOf(transactionDetails));
                Toast.makeText(AddPointsActivity.this, "transaction sucess: " + transactionDetails, Toast.LENGTH_LONG).show();
                if(transactionDetails.getStatus().equalsIgnoreCase("success"))
                {
                    String user_id= session_management.getUserDetails().get(KEY_ID);
                     }
                else
                {
                    common.showToast("Payment Failed.");
                }
            }
            @Override
            public void onSubmitted(@NonNull TransactionDetails transactionDetails) {
                Log.e("onSubmitted", String.valueOf(transactionDetails));
                Toast.makeText(AddPointsActivity.this, "transaction pending: " + transactionDetails, Toast.LENGTH_LONG).show();
            }
            @Override
            public void onError( String message) {
                Log.e("error", String.valueOf(message));
                Toast.makeText(AddPointsActivity.this, "transaction failed: " + message, Toast.LENGTH_LONG).show();
            }
        }).pay();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant