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.
- Editing Live Apps are only possible with a PayPal Business Account. If you own one, go to the 4. step, if not click on the link!
- Click on Registration and create a Business account.
- If you are done, follow the guide from the 5. step.
- Log in with your PayPal credentials if you are not logged in.
- Navigate to https://developer.paypal.com/developer/applications/
- There is a Sandbox/Live switch. Make sure “Live” is selected!
- Click the “Create App” button under the REST API apps section.
- Fill the “App Name” field and click “Create App” button.
- Scroll down to “LIVE APP SETTINGS”, search the “Live Return URL” heading and click “Show”.
- Into the “Live Return URL” field you should enter the URL that Nextend Social Login suggests at the backend.
- 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”.
- If you want to get the email address as well, then don’t forget to tick “Email address” option. In this case you should also enable the “Email scope” setting 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”. )
- Important note: Before you could start using the App, it requires an App review, which might take up to 7 business days to process. Below the “Log in with PayPal” field you can check the “Approval Status”. Once your App got approved, you could continue with the provider verification in our Settings tab.
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.
Stores the user’s address. The following fields can be stored: street address, locality, region, postal code, country code.
Account status (verified)
Stores a bool value which represents the verified status of the PayPal account.
PayPal account ID (payer ID)
Stores the end user’s external PayPal account ID.
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.