Note that there are some explanatory texts on larger screens.

plurals
  1. POSet notify url to paypal payment in my android apps
    primarykey
    data
    text
    <p>Normally on websites, we can set a notify URL to check payment with paypal server. However how do we set it in an app? I am super new to paypal app payment.</p> <p>I am using MEP.PayPal</p> <pre><code>@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch(resultCode) { case Activity.RESULT_OK: String payKey = data.getStringExtra(PayPalActivity.EXTRA_PAY_KEY); data.getStringExtra(PayPalActivity.EXTRA_PAY_KEY); Toast.makeText(this,"Paymnet Successful : " + payKey,Toast.LENGTH_LONG).show(); //finish(); break; case Activity.RESULT_CANCELED: Toast.makeText(this,"Paymnet Cancel",Toast.LENGTH_LONG).show(); //finish(); break; case PayPalActivity.RESULT_FAILURE: Toast.makeText(this,"Paymnet Failed",Toast.LENGTH_LONG).show(); String errorID = data.getStringExtra(PayPalActivity.EXTRA_ERROR_ID); String errorMessage = data.getStringExtra(PayPalActivity.EXTRA_ERROR_MESSAGE); //Toast.makeText(getApplicationContext(),errorMessage, Toast.LENGTH_LONG).show(); //finish(); break; } } </code></pre> <p>So under Activity.RESULT_OK, I would like to send a post to my notify URL so that the codes in the URL can validate payments.</p> <p>Also, I get that the paykey can return the transaction details. If so, then I will use it to do the verification instead of using notify url. But after doing much reading, I still could not find the answer to return the transaction details, like maybe data.getStringExtra('transaction_id'), data.getStringExtra('merchant_name'), etc.</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. 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