Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The first step is to use the NetValve Payment API to generate the SDK url, which can be used to create a <script> element on the payment page.

This is a serverside/backend operation.

API details

Mode:- Stateless REST API

API URL: - {{paymentApiUrl}}/hpf/initializeSession

HTTP Method:- POST

Authentication: uses netvalve client ID, apiKey and basic auth. See here.

{{paymentApiUrl}}/hpf/initializeSession
GET
response
{
    "traceID": "b74039a7-5e88-4772-b79e-60de7e14416e",
    "responseTimestamp": "2024-11-27T14:03:03.187+00:00",
    "responseCode": "GTW_1000",
    "responseMessage": "GTW_1000",
    "netvalveScriptSrc": "https://3dsecuresuite.uat.sandbox-netvalve.com/script.js?version=1?tokenizationKey=88e1621e-9bd1-40ae-aefc-7fbde0aeac06?paymentToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjNTYyMGVkMi0zOTQ3LTRkNWEtYmZkNC02ZjVkMzA2YmFjNzQiLCJpYXQiOjE3MzI3MTYxODMsImlzcyI6Ik5FVFZBTFZFIiwiZXhwIjoxNzMyNzE2NDgzfQ.dp2r7JE3oNTACFENrchfKQFqsrBjMhruIRzzyI50pOI",
    "integrity": "a9d74bfb-12d6-422c-a230-fdcc351afc52",
    "tokenizationKey": "88e1621e-9bd1-40ae-aefc-7fbde0aeac06"
}

After a successful response:

Use the netvalveScriptSrc to construct a <script> html element on your payment page:

<script type="text/javascript" src={{netvalveScriptSrc}}></script>

This script will be used to load the NetValve SDK.

** note: currently in development is the integrity property. Once released, this will need to be added as an attribute to the script tag.

Next Step: add the netvalve payment fields

https://hpitdxb.atlassian.net/wiki/spaces/GW/pages/1136623617

  • No labels