IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Apache Discussion :

Paypal Ipn & Apache


Sujet :

Apache

  1. #1
    Membre à l'essai
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Calvados (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 12
    Points : 10
    Points
    10
    Par défaut Paypal Ipn & Apache
    J'ai mis en place un système d'abonnement sur mon site.
    Concernant le paiement et le retour sur le site, ca se passe bien.
    Par contre ,pour les notifications de paiements instantanées, ca ne marche pas (même en activant cette option sur mon compte paypal (avec l'url )).
    J'ai testé mon adresse pour les notifications sur le simulateur de paypal : ca mouline assez longtemps et finit par une page d'erreur de chargement.

    Je pense que c'est un problème d'accés à mon site donc une configuration particulière d'apache à mettre en place.

    voici le log d'erreur:
    * Connection #1 to host api-3t.sandbox.paypal.com left intact
    * About to connect() to api-3t.sandbox.paypal.com port 443 (#2)
    * Trying 23.43.75.42...
    * Connected to api-3t.sandbox.paypal.com (23.43.75.42) port 443 (#2)
    * successfully set certificate verify locations:
    * CAfile: C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\localweb\projects\monsite\app\Vendor\cacert.pem
    CApath: none
    * SSL connection using RC4-SHA
    * Server certificate:
    * subject: C=US; ST=CALIFORNIA; L=San Jose; O=PayPal, Inc.; OU=Partner Support; CN=api-3t.sandbox.paypal.com
    * start date: 2013-08-20 00:00:00 GMT
    * expire date: 2015-08-21 23:59:59 GMT
    * subjectAltName: api-3t.sandbox.paypal.com matched
    * issuer: C=US; O=VeriSign, Inc.; OU=VeriSign Trust Network; OU=Terms of use at https://www.verisign.com/rpa (c)10; CN=VeriSign Class 3 Secure Server CA - G3
    * SSL certificate verify ok.
    > POST /nvp HTTP/1.1
    Host: api-3t.sandbox.paypal.com
    Accept: */*
    Content-Length: 745
    Content-Type: application/x-www-form-urlencoded

    * upload completely sent off: 745 out of 745 bytes
    < HTTP/1.1 200 OK
    < Server: Apache
    < Content-Length: 1096
    < Content-Type: text/plain; charset=utf-8
    < DC: origin1-api-3t.sandbox.paypal.com
    < Date: Thu, 03 Oct 2013 10:37:50 GMT
    < Connection: keep-alive
    < Set-Cookie: DC=origin1-api-3t.sandbox.paypal.com; secure
    <
    * Connection #2 to host api-3t.sandbox.paypal.com left intact
    * About to connect() to api-3t.sandbox.paypal.com port 443 (#3)
    * Trying 23.43.75.42...
    * Connected to api-3t.sandbox.paypal.com (23.43.75.42) port 443 (#3)
    * successfully set certificate verify locations:
    * CAfile: C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\localweb\projects\monsite\app\Vendor\cacert.pem
    CApath: none
    * SSL connection using RC4-SHA
    * Server certificate:
    * subject: C=US; ST=CALIFORNIA; L=San Jose; O=PayPal, Inc.; OU=Partner Support; CN=api-3t.sandbox.paypal.com
    * start date: 2013-08-20 00:00:00 GMT
    * expire date: 2015-08-21 23:59:59 GMT
    * subjectAltName: api-3t.sandbox.paypal.com matched
    * issuer: C=US; O=VeriSign, Inc.; OU=VeriSign Trust Network; OU=Terms of use at https://www.verisign.com/rpa (c)10; CN=VeriSign Class 3 Secure Server CA - G3
    * SSL certificate verify ok.
    > POST /nvp HTTP/1.1
    Host: api-3t.sandbox.paypal.com
    Accept: */*
    Content-Length: 745
    Content-Type: application/x-www-form-urlencoded

    * upload completely sent off: 745 out of 745 bytes
    < HTTP/1.1 200 OK
    < Server: Apache
    < Content-Length: 1097
    < Content-Type: text/plain; charset=utf-8
    < DC: origin1-api-3t.sandbox.paypal.com
    < Date: Thu, 03 Oct 2013 10:42:10 GMT
    < Connection: keep-alive
    < Set-Cookie: DC=origin1-api-3t.sandbox.paypal.com; secure
    <
    * Connection #3 to host api-3t.sandbox.paypal.com left intact
    Merci de votre aide (ca fait 3 jours qu je m'arrache les cheveux et je suis devenu presque chauve ).

  2. #2
    Membre éprouvé Avatar de Marc3001
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2008
    Messages
    829
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux

    Informations forums :
    Inscription : Février 2008
    Messages : 829
    Points : 1 275
    Points
    1 275
    Par défaut
    Je ne vois aucune erreur dans tes logs....

    Tu vois bien les requêtes de paypal arriver sur ton url IPN ?
    Le logiciel, c'est comme le sexe, c'est meilleur quand c'est libre.

    Linus Torvalds

  3. #3
    Membre à l'essai
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Calvados (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 12
    Points : 10
    Points
    10
    Par défaut
    Je ne vois rien.
    J'ai un controlleur avec 2 méthodes. Une pour traiter la notification et une pour le retour sur mon site après le paiement (qui marche _ je peux récupérer les données de notification).

    Pour tester la 1ere méthode, je fais un insert dans ma BD mais quand j'effectue un paiement ,il ne se passe rien. la méthode n'est pas appelée .
    J'ai vu ca dans le fichier access.log lorsque j'effectue un paiement sur paypal :

    127.0.0.1 - - [07/Oct/2013:14:36:08 +0200] "GET /scrape?info_hash=%F6t%9D%17%87%BB%B1%27%06%B2%0E%DF7%E9%93%FE%03%B7%28%92 HTTP/1.1" 404 204

  4. #4
    Membre éprouvé Avatar de Marc3001
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2008
    Messages
    829
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux

    Informations forums :
    Inscription : Février 2008
    Messages : 829
    Points : 1 275
    Points
    1 275
    Par défaut
    Quelle url tu as configuré pour l'IPN dans l'admùin Paypal ?

    Comment tu appelles cette url pour tes tests ?
    Le logiciel, c'est comme le sexe, c'est meilleur quand c'est libre.

    Linus Torvalds

  5. #5
    Membre à l'essai
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Calvados (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 12
    Points : 10
    Points
    10
    Par défaut
    J'utilise Cakephp.
    Voici l'adresse:
    notify_url est bien paramétré dans le bouton paypal:
    $request = array(
    'METHOD' => 'BMCreateButton',
    'VERSION' => '87',
    'USER' => Configure::read('Paypal.USER'),
    'PWD' => Configure::read('Paypal.PWD'),
    'SIGNATURE' => Configure::read('Paypal.SIGNATURE'),
    'BUTTONCODE' => 'HOSTED',
    'BUTTONTYPE' => 'BUYNOW',
    'BUTTONSUBTYPE' => 'SERVICES',
    'L_BUTTONVAR0' => 'business='.Configure::read('Paypal.mail'),
    'L_BUTTONVAR1' => "item_name=$name",
    'L_BUTTONVAR2' => "amount=$price",
    'L_BUTTONVAR3' => "currency_code=EUR",
    'L_BUTTONVAR4' => "no_note=1",
    'L_BUTTONVAR5' => "notify_url=".Router::url('/paypal/notify',true),
    'L_BUTTONVAR6' => "return=".Router::url('/paypal/success',true),
    'L_BUTTONVAR7' => "cancel=".Router::url('/paypal/cancel',true),
    'L_BUTTONVAR8' => "custom=$custom",
    );

  6. #6
    Membre éprouvé Avatar de Marc3001
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2008
    Messages
    829
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux

    Informations forums :
    Inscription : Février 2008
    Messages : 829
    Points : 1 275
    Points
    1 275
    Par défaut
    Y'a un outil de test de page IPN sur le site paypal. Si tu utilises ce site, tu vois quelquechose arriver sur ton site ?

    Si non, verifie ton access.log, pour vérifier quelle url utilise paypal et éventuellement si c'est la bonne...
    Le logiciel, c'est comme le sexe, c'est meilleur quand c'est libre.

    Linus Torvalds

  7. #7
    Membre à l'essai
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Calvados (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 12
    Points : 10
    Points
    10
    Par défaut
    Le test sur le ipn simulator ne marche pas (ca mouline assez longtemps => page d'erreur) et il n'y a rien sur le fichier access.log sur paypal.
    J'attends l'activation de mon site sur free et je vais plutot tester tout cela la bas.
    Merci pour votre aide Marc3001.

Discussions similaires

  1. Paypal IPN invalide
    Par leoz2007 dans le forum E-Commerce
    Réponses: 1
    Dernier message: 04/06/2012, 14h04
  2. [PayPal][IPN] Afficher les variables $_POST
    Par beegees dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 1
    Dernier message: 16/04/2012, 12h24
  3. Paypal IPN: Problème avec fsockopen
    Par ilalaina dans le forum E-Commerce
    Réponses: 2
    Dernier message: 23/03/2011, 17h39
  4. Paypal IPN : notify_url n'est jamais exécutée
    Par ilalaina dans le forum E-Commerce
    Réponses: 8
    Dernier message: 05/11/2010, 16h18
  5. Paypal IPN et PDT ?
    Par TallyHo dans le forum Langage
    Réponses: 2
    Dernier message: 18/05/2009, 15h23

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo