Gateways::validatePayPalCredentials()
Makes sure PayPal is configured before a payment is started
Gateways::validatePayPalCredentials(): void
Return type
void
Exceptions
| Type | Description |
|---|---|
Exception |
merx.paypalError |
Description
Both keys are needed, so either one missing is a problem. Merx defaults
them to empty strings rather than null, which is why emptiness is what is
checked — comparing against null never matched.