Bonjour tout le monde,
J’ai voulu mettre en place des liens de paiements par PayPal, sans succès malheureusement.
J’ai suivi la procédure présente sur la page de configuration du module :
1. Log in to your PayPal account (on real paypal www.paypal.com (or sandbox developer.paypal.com).
2. Click the "Profile" or "Preferencies" subtab located under the My Account heading.
3. Click the link "API Access".
4. Click the View API Certificate link in the right column.
5. Click the Request API signature radio button on the Request API Credentials page.
6. Complete the Request API Credential Request form by clicking the agreement checkbox and clicking Submit.
7. Save the values for API Username, Password and Signature (make sure this long character signature is copied).
8. Click the "Modify" button after copying your API Username, Password, and Signature.
Les identifiants API ont été généré pour l’API SOAP depuis le site de paypal.
Après la configuration, l’erreur suivante apparaît en cliquant sur le bouton « payer avec PayPal » sur la page de paiement :
D’après la documentation (developer paypal com/docs/nvp-soap-api/errors/#10002a) : l’erreur est liée à l’authentification / un problème de permission.
Dans les journaux, je trouve bien des infos :
Submit Paypal form
2021-07-13 17:57:01 DEBUG 188.241.83.99 PAYPAL_API_USER: <USER>
2021-07-13 17:57:01 DEBUG 188.241.83.99 PAYPAL_API_PASSWORD: ****************
2021-07-13 17:57:01 DEBUG 188.241.83.99 PAYPAL_API_SIGNATURE: <SIGNATURE>
2021-07-13 17:57:01 DEBUG 188.241.83.99 PAYPAL_API_SANDBOX:
[...]
2021-07-13 17:57:01 DEBUG 188.241.83.99 PAYPAL_API_PRICE: 9.99
2021-07-13 17:57:01 DEBUG 188.241.83.99 PAYPAL_API_DEVISE: EUR
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToName:
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToStreet:
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToCity:
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToState:
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToCountryCode:
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToZip:
2021-07-13 17:57:01 DEBUG 188.241.83.99 shipToStreet2:
2021-07-13 17:57:01 DEBUG 188.241.83.99 phoneNum:
2021-07-13 17:57:01 DEBUG 188.241.83.99 email:
2021-07-13 17:57:01 DEBUG 188.241.83.99 desc:
2021-07-13 17:57:01 DEBUG 188.241.83.99 SCRIPT_URI:
[...]
2021-07-13 17:57:01 INFO 188.241.83.99 Paypal API endpoint https://api-3t.paypal.com/nvp
[...]
2021-07-13 17:57:02 DEBUG 188.241.83.99 print_paypal_redirect resArray=array (
'TIMESTAMP' => '2021-07-13T15:57:02Z',
'CORRELATIONID' => '4a6aab5a68d1c',
'ACK' => 'Failure',
'VERSION' => '98.0',
'BUILD' => '55805130',
'L_ERRORCODE0' => '10002',
'L_SHORTMESSAGE0' => 'Security error',
'L_LONGMESSAGE0' => 'Security header is not valid',
'L_SEVERITYCODE0' => 'Error',
)
Les champs utilisateur, mot de passe et signature, n’ont pas d’espace qui aurait pu s’insérer ou autre.
Est-ce que quelqu’un d’autre aurait déjà eu ce problème, qu’est-ce que je peux tenter pour résoudre le problème ?
Merci à tous et bonne soirée.