Git Product home page Git Product logo

Comments (24)

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

easyUpiPayment = new EasyUpiPayment.Builder()
.with(Authosized_Product.this)
.setPayeeVpa(companyData.getUpiId())
.setPayeeName(companyData.getName())
.setTransactionId(s)
.setTransactionRefId(s+"1")
.setDescription(getString(R.string.company_name)+" Product Name : "+productData.getPname())
.setAmount(String.valueOf(Double.valueOf(productData.getCost())))
.build();
easyUpiPayment.setPaymentStatusListener(this);
easyUpiPayment.startPayment();

@OverRide
public void onTransactionCompleted(TransactionDetails transactionDetails) {
finalTrans.setUpiId(transactionDetails.getTransactionId());
Log.e("trans data","trans id = "+transactionDetails.getTransactionId()+" Refrence id "+transactionDetails.getTransactionRefId()+" refAprovalRefNo = "+transactionDetails.getApprovalRefNo()+" Status Code = "+transactionDetails.getStatus());
// new TransectionComplete().execute("http://"+Main.getIp()+"/Identify/checker/RegisterTransaction",new Gson().toJson(finalTrans));
}

public void onTransactionSuccess() {
watingAlert.dismiss();
finalTrans.setSuccess(true);
Toast.makeText(Authosized_Product.this,"Payment Successful !!",Toast.LENGTH_LONG).show();
//line to make the registration to the database that payment is successful
new TransectionComplete().execute("http://"+Main.getIp()+"/Identify/checker/RegisterTransaction",new Gson().toJson(finalTrans));
}

onTransectionSuccess is successfully running and payment is also successfully completing . but this onTransectionComplete is not running from where the most importent data will come . i.e the TransectionID.
please help me how to resolve this issue..

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

i had used phonepe .. something same was occuring in case of paytm . according to you this code is perfectly fine??

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

the only doubt i have is .. does the upi accept any sort of strings correspond to the transaction id and the reference id ? i am literally putting anything .. they are just unique to the other values in data base.
Also if i put the registration to the server in the onTransactionSuccess() it works for me but i don't get TransectionID

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

easyUpiPayment = new EasyUpiPayment.Builder()
.with(Authosized_Product.this)
.setPayeeVpa(companyData.getUpiId())
.setPayeeName(companyData.getName())
.setTransactionId(s)
.setTransactionRefId(s+"1")
.setDescription(getString(R.string.company_name)+" Product Name : "+productData.getPname())
.setAmount(String.valueOf(Double.valueOf(productData.getCost())))
.build();
easyUpiPayment.setPaymentStatusListener(this);
easyUpiPayment.startPayment();

There might be error in this.. s= 835363829 for one case.

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

yes it is working after changing the value of s.. System.currentTimeInMillis() is working .. but what should
be actually put inside the transaction id ? and the TransactionRefId . and why is it working in this case? is there some limit on the length on the string 's'(in my case) .

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

okey thanks a lot ... man

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

and one more thing ..
what if the payment is from the bank is taking much time than usual . and what if the bank server is down . have you handled that

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

in that case what should we do to insure consistency .

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

what if payment is successful after 2-3 days ? if there a way to check from on the server side that is the payment is successful or not?

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

okey ... again.. thanks a lot man..

from easyupipayment-android.

rkumarsingh007 avatar rkumarsingh007 commented on May 28, 2024

sorry to bother you again .. onTransactionPending() is not there in your interface . and neither in your documentation.

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

@suryabhairaj Sorry for the late reply. It's my mistake. callback onTransactionSubmitted() is called when it's pending.

from easyupipayment-android.

PatilShreyas avatar PatilShreyas commented on May 28, 2024

I think issue is resolved. So I'm closing issue. If you found anything, you can reopen it.

from easyupipayment-android.

Gammaprince avatar Gammaprince commented on May 28, 2024

sir your library invoking wrong callback it says phone doesn't have any upi app , but there are upi apps installed in my phone
what is the solution ? why is it behaving so different?
If you could give your precious time please help me out

from easyupipayment-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.