This guide explains how to connect PayPal to EzDIS so customers can pay invoices from the payment link.
When PayPal is enabled, the public payment page shows a PayPal button for invoices in supported currencies. If MercadoPago is also enabled, the customer can choose which method to use.
You can also send a PayPal subscription link from the plan assigned to a customer. The customer approves the subscription once, and PayPal automatically charges each billing period.
When the payment is confirmed:
Important: the Client Secret is private. Do not share it or paste it in public places.
| Field | Description | Example |
|---|---|---|
| Enable PayPal payments | Enables PayPal as a payment method | Yes |
| PayPal Client ID | Client ID from the REST app | Abc... |
| PayPal Client Secret | Client Secret from the REST app | Efg... |
| PayPal environment | sandbox for tests or live for production |
sandbox |
| PayPal Webhook ID | Webhook ID created in PayPal | WH-... |
| PayPal commission percentage | Optional fee charged to the customer | 5 |
The webhook lets PayPal notify EzDIS when a payment capture is completed or when a subscription changes/is charged.
Use this URL:
https://www.ezdis.net/api/payment/paypal/webhook?domain=your-domain.ezdis.net
Replace your-domain.ezdis.net with your real app domain. Example:
https://www.ezdis.net/api/payment/paypal/webhook?domain=midistribuidora.ezdis.net
In PayPal, subscribe to these events:
Then copy the Webhook ID and paste it in the PayPal settings inside EzDIS.
sandbox mode.Subscriptions are created from the plan assigned to the customer. EzDIS generates its own secure link; when the customer opens it, they are sent to PayPal to approve recurring billing.
When PayPal confirms an automatic charge:
Do not expose PayPal access tokens in public links. The EzDIS subscription link uses an internal token and the backend talks to PayPal securely.
If you want to pass processing costs to the customer:
5 for 5%.The customer pays the invoice total plus the fee. EzDIS records the original invoice amount as the payment.
AI-generated answers based on the manual. They may contain mistakes.