Android

Auto logout after payment done on Paypal android

Hi Guys, While working on Paypal Android Sdk 2.3.5v, integration in to an app. I’ve come across a situation, that app should log out from Paypal screens, after payment is done and return to app screens.

Here is the code snippet to implement that feature

private static PayPalConfiguration config = new PayPalConfiguration()
 .environment(CONFIG_ENVIRONMENT)
 .clientId(CONFIG_CLIENT_ID)
.rememberUser(false)

In this above for rememberUser(boolean) method of PayPalConfiguration object will make turn On/Off for Auto logout feature.

Paypal Android

here is ref link

Hope it helps somebody :).

Leave a Reply

Your email address will not be published.