Development #9360
gérer l'appel de l'url de callback en POST
Début:
16 décembre 2015
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Certains systèmes de paiement, comme Payzen, notifie la paiement via une requete POST.
Exemple:
194.50.38.6 - - [16/Dec/2015:17:36:08 +0100] "POST /lingo/callback/1/ HTTP/1.1" 403 2882 "-" "Lyra-Network Agent"
avec les informations de retour dans le corps de la requete:
vads_amount=11400&vads_auth_mode=FULL&vads_auth_number=3fe12b&vads_auth_result=00&vads_capture_delay=0&vads_card_brand=CB&vads_card_number=497010XXXXXX0000&vads_payment_certificate=ae2ffbeb3b7bc81988ea3326118b63cdbcff7a2f&vads_ctx_mode=TEST&vads_currency=978&vads_effective_amount=11400&vads_site_id=57406901&vads_trans_date=20151216171512&vads_trans_id=949487&vads_trans_uuid=71cb457db693431b9ef1a66fc0f58e71&vads_validation_mode=0&vads_version=V2&vads_warranty_result=NO&vads_payment_src=EC&vads_cust_email=smihai%40entrouvert.com&vads_cust_country=FR&vads_contrib=eopayment&vads_sequence_number=1&vads_contract_used=2355672&vads_trans_status=AUTHORISED&vads_expiry_month=6&vads_expiry_year=2016&vads_bank_product=F&vads_pays_ip=FR&vads_presentation_date=20151216171501&vads_effective_creation_date=20151216171501&vads_operation_type=DEBIT&vads_threeds_enrolled=&vads_threeds_cavv=&vads_threeds_eci=&vads_threeds_xid=&vads_threeds_cavvAlgorithm=&vads_threeds_status=&vads_threeds_sign_valid=&vads_threeds_error_code=&vads_threeds_exit_status=&vads_result=00&vads_extra_result=&vads_card_country=FR&vads_language=fr&vads_hash=f2903a1d2522f37911e9d85bbdf740316fc9178edd4f8ab56cb6bed1b2c3ed68&vads_url_check_src=PAY&vads_action_mode=INTERACTIVE&vads_payment_config=SINGLE&vads_page_action=PAYMENT&signature=d6c398ae3b08eed81f9f4b2f752f92a04ae50f51
Il faudrait gérer ce cas
Fichiers
Historique
Mis à jour par Serghei Mihai il y a plus de 8 ans
- Fichier 0001-handle-callback-calls-with-POST-method-9360.patch 0001-handle-callback-calls-with-POST-method-9360.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus de 8 ans
Je préférererais que la méthode s'appelle handle_callback.
payment_response = payment.response(payment_response)
ça complique grandement la lecture d'avoir des variables qui changent du tout au tout en cours de route; par exemple ça peut amener une inquiétude comme quoi on vérifie l'attribut "signed" de ce qui est posté, alors qu'en fait, non, c'est l'attribut signed posé et vérifié par eopayment.
Mis à jour par Serghei Mihai il y a plus de 8 ans
- Fichier 0001-handle-callback-calls-with-POST-method-9360.patch 0001-handle-callback-calls-with-POST-method-9360.patch ajouté
Ok
Mis à jour par Serghei Mihai il y a plus de 8 ans
- Statut changé de En cours à Résolu (à déployer)
commit 5dbd625fe366a98662678c627ecddc983ca963f1 Author: Serghei Mihai <smihai@entrouvert.com> Date: Thu Dec 17 09:53:22 2015 +0100 handle callback calls with POST method (#9360)