Skip to content

Instantly share code, notes, and snippets.

@SeraphimSerapis
Created February 20, 2014 07:58
Show Gist options
  • Save SeraphimSerapis/9108845 to your computer and use it in GitHub Desktop.
Save SeraphimSerapis/9108845 to your computer and use it in GitHub Desktop.
Process the result of the PayPalFuturePaymentActivity
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_CODE_FUTURE_PAYMENT) {
if (resultCode == Activity.RESULT_OK) {
PayPalAuthorization auth = data
.getParcelableExtra(PayPalFuturePaymentActivity.EXTRA_RESULT_AUTHORIZATION);
if (auth != null) {
String authorization_code = auth.getAuthorizationCode();
// send authorization code to server to receive the access & refresh code
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment