Configure PayPal Express Checkout
Onboarding PayPal Express Checkout
If you have signed up to PayPal Express Checkout, you need to configure it with Elastic Path Composable Commerce to allow your customers to use PayPal Express Checkout to check out their purchases. In Commerce Manager, you can:
- Test PayPal Express Checkout with a sandbox account from developer.paypal.com.
- Enable PayPal Express Checkout in your production environment.
You connect your PayPal account by running PayPal onboarding from Commerce Manager. Onboarding opens PayPal in a new window. When you finish onboarding, Commerce Manager saves your PayPal Account ID and your Enabled and Test mode settings automatically.
To configure payment gateways, your role needs manage access to payment settings. With read access, you can view the gateway settings, but you cannot change them or run onboarding.
Testing PayPal Express Checkout in Commerce Manager
-
Log in to Commerce Manager.
-
Go to Settings > Payments.
The Payment gateways page lists the available payment gateways and the Status of each one. PayPal Express Checkout is Disabled until you enable it.
-
Click PayPal Express Checkout. Alternatively, click the ⋮ icon next to the gateway and select Edit.
The PayPal Express Checkout panel opens. Until you complete onboarding, the Onboarding Status is Incomplete.
-
Turn on Enabled.
-
Turn on Test mode.
-
Click PayPal Onboarding.
-
In the PayPal window, log in with the sandbox account that you want to use and follow the prompts to complete onboarding. You can go to developer.paypal.com to find or create a sandbox account.
When onboarding is complete, close the PayPal window and return to Commerce Manager. It will show PayPal Express Checkout connected. In the PayPal Express Checkout panel:
- Onboarding Status is Connected successfully.
- Account ID is filled with your PayPal account ID.
The store is now ready to take transactions with PayPal Express Checkout in test mode.
If Onboarding Status shows an error, run onboarding again or contact PayPal support.
Enabling PayPal Express Checkout in Live Mode in Commerce Manager
-
Log in to Commerce Manager.
-
Go to Settings > Payments.
-
Click PayPal Express Checkout. Alternatively, click the ⋮ icon next to the gateway and select Edit.
-
Turn on Enabled.
-
If Test mode is on, turn it off. Test mode must be off to use PayPal Express Checkout in a production environment.
Account IDs are specific to the PayPal environment, so changing Test mode clears the Account ID field. If you change Test mode back before saving, the account ID is restored.
-
Click PayPal Onboarding.
-
In the PayPal window, enter the email address of the live account that you want to use, and follow the prompts to complete onboarding.
- If you use a new email address, PayPal prompts you to create an account.
- If you use an existing email address, PayPal prompts you to log in.
When onboarding is complete, close the PayPal window and return to Commerce Manager. It will show PayPal Express Checkout connected. In the PayPal Express Checkout panel:
- Onboarding Status is Connected successfully.
- Account ID is filled with your PayPal account ID.
The store is now ready to take transactions with PayPal Express Checkout.
If Onboarding Status shows an error, run onboarding again or contact PayPal support.
Managing PayPal Express Checkout
-
Changing the PayPal account: Click PayPal Onboarding, and then click Re-run onboarding to confirm. Re-running onboarding replaces the current account ID.
-
Entering the account ID manually: Enter your PayPal account ID in Account ID, and click Save.
noteMake sure there are no spaces before or after the account ID. Extra spaces cause a
400error when you make a payment using thepurchaseorauthorizemethod. -
Disabling PayPal Express Checkout: Turn off Enabled, and click Save. Alternatively, delete the account ID from Account ID and click Save. Commerce Manager warns you that saving without an account ID disables PayPal Express Checkout. Click Save to confirm.