Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_MPL_Developer_Guide_and_Reference_Android.pdf" rel="nofollow">Paypal Mobile Chekout guide</a></p> <p>Implementation provided on paypal website is different from yours. They are doing <code>startActivityForResult()</code> to start <code>PaypalActivity</code>. and when in <code>onActivityResult()</code> method they are checking <code>statusCode</code> to check transaction status and act accordingly. </p> <p>Follow that document for your implementation.</p> <p>Here in your code, I donot find a point for using <code>AsyncTask</code>. Your <code>ResultDelegate</code> is <code>Serializable</code> where as <code>Activity</code> is not thats why it is throwing <code>NotSerializableException</code>.</p> <p><strong>Edit:</strong></p> <p>As you are developing for Google Android platform, then why not to use Google Checkout In-App?</p> <p><strong>Edit:</strong></p> <p>This method will be called when your <code>PaypalActivity</code> will finish. That activity will pass <code>resultCode</code> to this <code>onActivityResult</code> method.</p> <pre><code>@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { switch (resultCode) { case Activity.RESULT_OK: // The payment succeeded String payKey = data.getStringExtra(PayPalActivity.EXTRA_PAY_KEY); // Tell the user their payment succeeded break; case Activity.RESULT_CANCELED: // The payment was canceled // Tell the user their payment was canceled break; case PayPalActivity.RESULT_FAILURE: // The payment failed -- we get the error from the EXTRA_ERROR_ID // and EXTRA_ERROR_MESSAGE String errorID = data.getStringExtra(PayPalActivity.EXTRA_ERROR_ID); String errorMessage = data .getStringExtra(PayPalActivity.EXTRA_ERROR_MESSAGE); // Tell the user their payment was failed. } } </code></pre> <p>regards, Aqif Hamid</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload