How to add PayPal to your Dazzly website
/ Support / Guides / Ecommerce / Setting up PayPal with Dazzly
This step-by-step guide will show you how to add PayPal to your Dazzly Ecommerce Website. You will need to have an account with PayPal to begin. If you don't have a PayPal account yet, please visit PayPal to create one.
5-10 minutes
This guide is divided into steps:
Browse to the PayPal Developer web page
Firstly, login to PayPal by clicking the blue 'Log into Dashboard' button at the top right of the page.
Sign-in to your PayPal account
Log into PayPal using your account details.
My Apps & Credentials
Once logged in it should take you to the 'My Apps & Credentials' page within the PayPal Developer Dashboard. By default, 'Sandbox' mode is enabled as shown with the blue button at the top. Click the 'Live' button as outlined in red to switch to 'Live' mode.
Switch to Live mode
After clicking the 'Live' button, select the 'App' to use. By default there is a 'Activation_App' created, you can use this or you can create a new 'App' e.g. my_website_checkout. Click the App as outlined in red.
Live API Credentials - Client ID
This should bring up a section called 'LIVE API CREDENTIALS'. Click the 'Show' button under Secret, as outlined in red.
Live API Credentials - Secret
You should now be able to see your 'Client ID' and 'Secret'.
Update PayPal settings within Dazzly
Within Dazzly, Select the Ecommerce menu, then 'Receive Payments' and then 'PayPal'. Copy your 'Client ID' and 'Secret' from the previous step into the 'App Client ID' and 'App Secret' fields in Dazzly.
Create a Webhook
Back in the PayPal Developer dashboard, scroll down to the 'LIVE WEBHOOKS' section. Enter
https://api.prod.dazzly.co/integrations/paypal/webhooks
into the 'Webhook URL' field.Note: A Webhook is a way to help PayPal communicate with Dazzly.
Select the Webhook event
Scroll down the list of 'Event types' to find 'Checkout order approved'. Select this checkbox.
Save
Scroll to the bottom of the list and click 'Save'
Get the Webhook ID
Once saved, it should show the 'Webhook' with a 'Webhook ID'.
Save PayPal settings in Dazzly
Copy the 'Webhook ID' from the previous step into the last field in Dazzly. As shown outlined in red. Click 'Save'.
Publish
Don't forget to hit 'Publish' to update your website. After Publishing, PayPal should then be available as a checkout option.