Created
February 20, 2014 07:58
-
-
Save SeraphimSerapis/9108845 to your computer and use it in GitHub Desktop.
Process the result of the PayPalFuturePaymentActivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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