Tokenization and 3D Secure Support (Version 2)

Overview

Radial's foundational JavaScript library can be used to quickly integrate with the Radial Payments Framework in order to take advantage of Tokenization and 3D Secure (3DS) Support. This can be done by loading Radial's radial_payments.js and invoking the appropriate methods as needed.

Note: A similar process can be used to encrypt payment card numbers entered in mobile apps. For more information, see Encryption Support for Mobile Apps.

The radial_payments.js can be used for a wide variety of scenarios:

  • Tokenization Only: This call is typically invoked when credit card information is captured without making a purchase. The webstore must use radial_payments.js and call appropriate functions to get token.
  • Tokenization and 3DS Authentication: This call is typically invoked when the customer enters a credit card on the payment screen and places an order. In this case, the webstore is expected to call `tokenizeAndAuthorize` js method provided by Radial.
  • 3DS Authentication with Saved Token: This call is typically invoked when the customer uses a saved card to place an order. In this case, the webstore is expected to invoke the `authorizeSavedToken` method provided by Radial passing in the account_token as an input parameter.

One of the following responses will be returned by Radial at the completion of the Authentication call: SUCCESS, FAILURE, ERROR, NOACTION.

If the response is SUCCESS or NOACTION (not enrolled), the account_token, which is the tokenized account number, is generally returned in the json data object to the callback function provided by the webstore when invoking the appropriate methods.

Including radial_payments.js

When using radial_payments.js, you begin by including the library. Add this script tag to your page:

  • Test Environment
    <script src=http://tst.payments.radial.com/hosted-payments/v2.0/radial_payments.js></script>
  • Production Environment
    <script src=https://hostedpayments.radial.com/hosted-payments/v2.0/radial_payments.js></script>

Webstore needs to add a div tag with the id="authentication-container", where they want to show the authentication popup on the checkout/payment

<div id="authentication-container"></div>

Tokenization and 3DS Authentication

Testing JavaScript API Integration

Radial offers a set of mock card numbers that can be used when testing your integration with Radial's JavaScript APIs. For details, see Testing JavaScript API Integration.

3d Secure Json Object Format:

If the authorization is not giving the expected results (approve, decline, etc) please check with the Radial Payments to make sure proper responses have been mapped.

When prompted for 3D Secure 2 text challenges, use the following credentials: For native mobile integrations, use password: 1234. For web and mobile browser integrations, use user: user and password: password

Scenario PAN PIN Expiration Date
Amex Redirect 345177925488348 7373 03/2030
Visa Redirect 4212345678901237 737 03/2030
Card Not Enrolled Redirect 4199350000000002 737 03/2030
Amex 3DS v2 371449635398431 7373 03/2030
Discover 3DS v2 6011111111111117 737 03/2030
Visa 3DS v2 4917610000000000 737 03/2030
3DS v2 Not Enrolled 4199350000000002 737 03/2030
3DS v2 Error 5201282999005515 737 03/2030

Some Useful Links: