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.
EnrollmentChecks enrollmentLookups = EnrollmentChecks.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(100)
.currency("CAD")
.customerIp("204.91.0.12")
.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
.card()
.cardNum("4107857757053670")
.cardNum("3569990000000009")
.cardExpiry()
.month(10)
.year(2018)
.Done()
.Done()
.acceptHeader("text/html,application/xhtml+xml,application/xml;q\u003d0.9,image/webp,*/*;q\u003d0.8")
.merchantUrl("https://www.google.com")
.Build();
EnrollmentChecks response = client.threeDSecureService().submit(enrollmentLookups);
EnrollmentChecks enrollmentChecks = client.threeDSecureService().submit(EnrollmentChecks.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(100)
.currency("CAD")
.customerIp("204.91.0.12")
.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
.card()
.cardNum("4107857757053670")
.cardExpiry()
.month(10)
.year(2018)
.Done()
.Done()
.acceptHeader("text/html,application/xhtml+xml,application/xml;q\u003d0.9,image/webp,*/*;q\u003d0.8")
.merchantUrl("https://www.google.com")
.Build());
EnrollmentChecks response = client.threeDSecureService().get(enrollmentChecks);
EnrollmentChecks enrollmentChecks = client.threeDSecureService().submit(EnrollmentChecks.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(100)
.currency("CAD")
.customerIp("204.91.0.12")
.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
.card()
.cardNum("4107857757053670")
.cardExpiry()
.month(10)
.year(2018)
.Done()
.Done()
.acceptHeader("text/html,application/xhtml+xml,application/xml;q\u003d0.9,image/webp,*/*;q\u003d0.8")
.merchantUrl("https://www.google.com")
.Build());
Authentications response = client.threeDSecureService().submit(Authentications.Builder()
.merchantRefNum(enrollmentChecks.merchantRefNum())
.paResp(enrollmentChecks.paReq())
.enrollmentId(enrollmentChecks.id())
.Build());
EnrollmentChecks enrollmentChecks = client.threeDSecureService().submit(EnrollmentChecks.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(100)
.currency("CAD")
.customerIp("204.91.0.12")
.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
.card()
.cardNum("4107857757053670")
.cardExpiry()
.month(10)
.year(2018)
.Done()
.Done()
.acceptHeader("text/html,application/xhtml+xml,application/xml;q\u003d0.9,image/webp,*/*;q\u003d0.8")
.merchantUrl("https://www.google.com")
.Build());
Authentications response = client.threeDSecureService().submit(Authentications.Builder()
.merchantRefNum(enrollmentChecks.merchantRefNum())
.paResp(enrollmentChecks.paReq())
.enrollmentId(enrollmentChecks.id())
.Build());
Authentications auth_response = client.threeDSecureService().get(response);
EnrollmentChecks enrollmentChecks = client.threeDSecureService().submit(EnrollmentChecks.Builder()
.merchantRefNum(System.Guid.NewGuid().ToString())
.amount(100)
.currency("CAD")
.customerIp("204.91.0.12")
.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
.card()
.cardNum("4107857757053670")
.cardExpiry()
.month(10)
.year(2018)
.Done()
.Done()
.acceptHeader("text/html,application/xhtml+xml,application/xml;q\u003d0.9,image/webp,*/*;q\u003d0.8")
.merchantUrl("https://www.google.com")
.Build());
Authentications response = client.threeDSecureService().submit(Authentications.Builder()
.merchantRefNum(enrollmentChecks.merchantRefNum())
.paResp(enrollmentChecks.paReq())
.enrollmentId(enrollmentChecks.id())
.Build());
Authentications auth_response = client.threeDSecureService().get(response, true);