Table of contents
How to enable PayPal login in WordPress
1. Create a PayPal App
To be able to log in via PayPal you must create a PayPal app first.
- Navigate to https://developer.paypal.com/developer/applications/
- Log in with your PayPal credentials if you are not logged in.
- Scroll down to “REST API apps”.
- Click the “Create App” button.
- Fill the “App Name” field and click “Create App” button.
- Select the “Live” option on the top-right side.
- Scroll down to “LIVE APP SETTINGS”, search the “Live Return URL” heading and click “Show”.
- Add the following URL to the “Live Return URL” field https://yoursite.com/wp-login.php?loginSocial=paypal, where the yoursite.com is your domain.
- Scroll down to “App feature options” section and tick “Log In with PayPal”.
- Click “Advanced Options” which can be found at the end of text after “Connect with PayPal (formerly Log In with PayPal)”.
- Tick “Full name”.
- “Email address” now requires an App Review by PayPal. To get the email address as well, please submit your App for a review after your App configuration is finished. Once the App review is succesfull, you need to pick “Email address” here to retrieve the email of the user. Until then make sure the Email scope is not “Enabled” in our PayPal Settings tab.
- When all fields are filled, click “Save”.
- Scroll up to “LIVE API CREDENTIALS” section and find the necessary “Client ID” and “Secret”! ( Make sure you are in “Live” mode and not “Sandbox”. )
2. App setup
Once your PayPal app is ready you’ll need to copy and paste the Client ID and Secret to the PayPal provider’s Settings tab. You can find the information at your PayPal app’s Settings which you can reach from the left sidebar.
Once your Client ID and Secret has been added you need to verify the setup first. This verification helps you identify possible problems with the app.
The Client ID of your PayPal app. You can find it at your App → left menu: Settings.
The Secret of your PayPal app. You can find it at your App → left menu: Settings.
To access to the email of the user an App review is required and the App must be Approved by PayPal.
By disabling this option, the email won’t be requested, so users will be able to login with PayPal even when the App is not approved by PayPal yet.
-Available since: 3.0.15
Username prefix on Register
Whenever a new user registers with their PayPal account they can get a custom prefix so you can easily identify them.
Fallback username prefix on register
Whenever a new user registers with their PayPal account and we can not generate a valid username from the first name or last name, a random username will be generated. With this option they can get a custom prefix so you can easily identify them.
Terms and conditions
This option can only be seen, if Terms and conditions is set to Show in Global Settings → Privacy tab. Here you can set custom Terms and Conditions for users who register with PayPal. For more information please read our GDPR documentation.
By default Nextend Social Login stores the first name, last name, email, avatar url and access token if it is possible, however some additional information can also be retrieved and stored.
When an option is checked, that field will be stored in a meta key with the specified name.
It determines when the synchronization shall happen.
- Register: whenever a new user registers with a provider, their data will be retrieved and stored.
- Login: whenever user logs in with a provider, their data will be retrieved and stored.
- Link: whenever user links and existing WordPress account with a provider, their data will be retrieved and stored.
Date of birth
Stores the user’s birthday.
Stores the user’s age range.
Stores the user’s address. The following fields can be stored: street address, locality, region, postal code, country code.
Stores the user’s phone number.
Account status (verified)
Stores a bool value which represents the verified status of the PayPal account.
Stores the user’s account type, like Personal, Premier or Business .
Account creation date
Stores the date when the user’s PayPal account was created.
Stores the user’s timezone.
Stores the user’s locale.
Stores the user’s language.
Common error messages returned by PayPal during verification
invalid client_id or redirect_uri
Looks like this action is not supported. Please return and report this error so that we can support it in the future. (invalid client_id or redirect_uri)
The problem is that the entered Live Return URL field is not correct for your app. Check the 7th step of the App setup to fix the problem.
It is also possible, that the entered Client ID is not correct. Maybe the app with the entered ID was deleted. Go to the PayPal provider → Settings and make sure that an existing App’s Client ID and Secret was entered.
Invalid client credentials
Error: unauthorized_client: Invalid client credentials
The Secret you copied from the PayPal app is invalid. Make sure the correct one was copied.
Looks like this action is not supported. Please return and report this error so that we can support it in the future. (invalid scope)
-Probably you didn’t tick the Log In with PayPal option under the LIVE APP SETTINGS.
-You didn’t tick the Full name and Email address scope to request the user to share that data with you.
-You didn’t tick the required scope for the selected Sync data option.