Ponto / PSD2 instellen
Deze pagina toont waar de bankkoppeling staat en welke Ponto-gegevens nog ontbreken.
De basisconfiguratie is ingevuld. Je kan nu verbinden met Ponto.
Waar invullen?
De echte Ponto-waarden horen niet in een gewone CRM-pagina. Vul ze in als server environment variables of in dit lokale bestand:
crm/config-psd2.local.php
De CRM laadt dat bestand automatisch via crm/config.php. Het voorbeeld staat in:
crm/config-psd2.example.php
Wat moet in Ponto staan?
Bij jouw Ponto custom integration moet deze redirect/callback URL ingesteld zijn:
https://jandruyts.com/crm/modules/psd2/callback.php
Zonder exact dezelfde callback weigert Ponto de terugkeer naar de CRM.
In te vullen waarden
| Veld | Status | Uitleg | Huidige waarde |
|---|---|---|---|
CRM_BANK_ENCRYPTION_KEY |
Ingevuld | Versleutelt banktokens in de database. | Aanwezig |
PSD2_PROVIDER |
Ingevuld | Naam van de koppeling. Voor jouw koppeling moet dit ponto zijn. | ponto |
PSD2_CLIENT_ID |
Ingevuld | Client ID uit Ponto. | Aanwezig |
PSD2_CLIENT_SECRET |
Ingevuld | Client secret uit Ponto. | Aanwezig, verborgen |
PSD2_REDIRECT_URI |
Ingevuld | Callback URL die ook in Ponto moet staan. | https://jandruyts.com/crm/modules/psd2/callback.php |
PSD2_BASE_URL |
Ingevuld | API basis-URL van Ponto. | https://api.myponto.com |
PSD2_AUTH_URL |
Ingevuld | Alleen nodig bij authorization-code flow. Bij Ponto custom integration niet nodig. | Niet nodig bij Ponto |
PSD2_TOKEN_URL |
Ingevuld | Ponto token-URL. | /oauth2/token |
PSD2_ACCOUNTS_ENDPOINT |
Ingevuld | Endpoint om bankrekeningen op te halen. | /accounts |
PSD2_TRANSACTIONS_ENDPOINT |
Ingevuld | Endpoint om transacties op te halen. | /accounts/{accountId}/transactions |
PSD2_SCOPES |
Ingevuld | Toestemmingen die Ponto vraagt. | ai |
PSD2_GRANT_TYPE |
Ingevuld | Ponto custom integrations gebruiken client_credentials. | client_credentials |
PSD2_TOKEN_AUTH_MODE |
Ingevuld | Manier waarop client secret wordt meegestuurd. | basic |
PSD2_USE_PKCE |
Ingevuld | Extra OAuth-beveiliging. | false |
Minimale lokale config
Gebruik je Ponto dashboard/documentatie voor de URL's. Zet hier nooit echte secrets in publieke communicatie.
define('CRM_BANK_ENCRYPTION_KEY', 'lange-willekeurige-sleutel');
define('PSD2_PROVIDER', 'ponto');
define('PSD2_CLIENT_ID', 'client-id-uit-ponto');
define('PSD2_CLIENT_SECRET', 'client-secret-uit-ponto');
define('PSD2_REDIRECT_URI', 'https://jandruyts.com/crm/modules/psd2/callback.php');
define('PSD2_BASE_URL', 'https://api.myponto.com');
define('PSD2_TOKEN_URL', '/oauth2/token');
define('PSD2_ACCOUNTS_ENDPOINT', '/accounts');
define('PSD2_TRANSACTIONS_ENDPOINT', '/accounts/{accountId}/transactions');
define('PSD2_SCOPES', 'ai');
define('PSD2_GRANT_TYPE', 'client_credentials');
define('PSD2_TOKEN_AUTH_MODE', 'basic');
define('PSD2_USE_PKCE', 'false');