3DS
Vous pouvez intégrer votre application de commerce électronique directement à notre API 3D Secure, qui est agnostique de plateforme, afin que vos marchands puissent atténuer le risque de fraude tout en permettant aux titulaires de cartes de bénéficier d’une sécurité supplémentaire lors de l’utilisation de leurs cartes en ligne. Paysafe est conforme à 3D Secure version 1.0.2.
Cliquez sur les liens ci-dessous pour voir nos exemples de code.
Vérifier l’accessibilité du service
response_object = self.client.three_d_secure_service_handler().monitor()
enrollment_obj = EnrollmentChecks(None)
enrollment_obj.merchantRefNum(RandomTokenGenerator().generateToken())
enrollment_obj.amount("5000")
enrollment_obj.currency("USD")
enrollment_obj.customerIp("172.0.0.1")
enrollment_obj.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
enrollment_obj.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8")
enrollment_obj.merchantUrl("https://www.merchant.com")
card_obj = Card(None)
card_obj.cardNum("4107857757053670")
card_expiry_obj = CardExpiry(None)
card_expiry_obj.month("10")
card_expiry_obj.year("2020")
card_obj.cardExpiry(card_expiry_obj)
enrollment_obj.card(card_obj)
response_object = self.client.three_d_secure_service_handler().submit_enrollment(enrollment_obj)
enrollment_obj = EnrollmentChecks(None)
enrollment_obj.id("e067d83f-add7-4b6b-8884-dfa8693dde1f")
response_object = self.client.three_d_secure_service_handler().lookup_enrollment(enrollment_obj)
authentications_obj = Authentications(None)
authentications_obj.merchantRefNum(RandomTokenGenerator().generateToken())
authentications_obj.paRes("eJxVUstuwjAQ/BXEvbGd+JGgxVJaDgUJREtbtVyi4FgQtQngJDz+vnYI0N52PJ717KzhbWO0Hi20aoyWMNVVla51L8+GffN9xh72SKJW6+pgihqThFAeUCyikCZC+IGfEE76Eubxq95LOGhT5dtSEivzAV2h7WrUJi1rCanaP45nkkZ+hDGgDkKhzXgkeUjCiFrhBUKZFlpm+qB0WRv9QCgJOYtCLqhgzKpbHtS2sfRZhj4HdAXQmB+5qetdNUDoeDx6RWfBU9sCkGMB3W3NG1dVttspz+SXPylVsDyvPl+O00W8VrN39kGXkziOh4DcDcjSWksfE44Z4T1CByQYYAqoPYe0cDYks/G5IS8Idu6R+Eo55u8J2AUYXSo7CLXUDYE+7balTUDaYG41oLvlp2eXq6ptZJRgETIhmMAs4KJNuCVcl9zmYi3jto0DgJwUdctD3e5t9e9P/AK4GK/3")
enrollment_obj = EnrollmentChecks(None)
enrollment_obj.id("e067d83f-add7-4b6b-8884-dfa8693dde1f")
authentications_obj.enrollmentchecks(enrollment_obj)
response_object = self.client.three_d_secure_service_handler().submit_authentications(authentications_obj)
authentications_obj = Authentications(None)
authentications_obj.id("5d4db3bc-34c9-417f-a051-0d992ad9284e")
response_object = self.client.three_d_secure_service_handler().lookup_authentications(authentications_obj)
authentications_obj = Authentications(None)
authentications_obj.id("5d4db3bc-34c9-417f-a051-0d992ad9284e")
response_object = self.client.three_d_secure_service_handler().lookup_authentications_and_enrollment(authentications_obj)