Paypal Configuration
Last updated
Last updated
In this section, we will go through how to configure your Paypal account to work with your Class 4 installation.
Step 1: Go to developer.paypal.com
In this section, you need to create an APP. You can crate either a Sandbox or Live APP. Sandbox will accept test account and test credit card. Live APP only accept real paypal account and real credit card.
This Client ID and Secret should be placed inside the Paypal section like below:
Here you can select to charge the total amount that the user paid or the amount that actually got credited to your paypal account after the Paypal fee.
If you select "Enable Paypal Test Mode", Class 4 will send query to the Paypal Sandbox URL instead of the Live Paypal URL.
In the APP setting, you also need to setup Webhook. This webhook is needed for Paypal to tell Class4 when a user has paid.
In the Paypal Webhook URL, you copy that URL.
Then, you enter that webhook URL to the following:
You can set "all" but Class 4 only expects 'PAYMENT.SALE.COMPLETED' in fact.
You must use HTTPS and a domain name when setting up webhook in Paypal. That means your Class 4 portal must be setup with a https domain url. Otherwise, Paypal will complaint the following error: