Question

Hello and sorry for my english...

I have implemented Paypal sdk for android, it works fine! But maybe for my english I don´t understand what i have to do here:

@Override
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
    if (resultCode == Activity.RESULT_OK) {
        PaymentConfirmation confirm = data.getParcelableExtra(PaymentActivity.EXTRA_RESULT_CONFIRMATION);
        if (confirm != null) {
            try {
                Log.i("paymentExample", confirm.toJSONObject().toString(4));

               // TODO: send 'confirm' to your server for verification.
                // see https://developer.paypal.com/webapps/developer/docs/integration/mobile/verify-mobile-payment/
                // for more details.

            } catch (JSONException e) {
                Toast.makeText(this, "Ha ocurrido un error, inténtelo de nuevo en unos instantes", Toast.LENGTH_LONG).show();
                IrActivityAnterior();
            }
        }
    }

I have read about it but I don´t know if I need to send a proof of payment to the person who has bought my app or if I only need to get this proof and save it. And the other question is how can I verify it? What steps I need to follow??

Thank you!!

Was it helpful?

Solution

If you follow the link in the example, you'll see that the purpose of verification is for you to verify that the payment succeeded. Another question of the same nature was answered here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top