Contents

Overriding the st-payment identifier

 

This form has the same structure as the standard example provided on this page, but has been modified with a custom identifier, for cases where your application doesn’t support our naming convention (e.g. ASP.NET does not support ids containing hyphens).

 


<html>
<head>
</head>
<body>
  <div id="st-notification-frame"></div>
  <form id="stform" action="https://www.example.com">
    <div id="st-card-number" class="st-card-number"></div>
    <div id="st-expiration-date" class="st-expiration-date"></div>
    <div id="st-security-code" class="st-security-code"></div>
    <button type="submit" id="st-form__submit" class="st-form__submit">
      Pay securely
    </button>
  </form>
  <script src="<DOMAIN>/js/v2/st.js"></script>
  <script>
  (function() {
    var st = SecureTrading({  
jwt:'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp7ImFjY291bnR0eXBlZGVzY3JpcHRpb24iOiJFQ09NIiwiYmFzZWFtb3VudCI6IjEwNTAiLCJjdXJyZW5jeWlzbzNhIjoiR0JQIiwic2l0ZXJlZmVyZW5jZSI6InRlc3Rfc2l0ZTEyMzQ1In0sImlhdCI6MTU1OTAzMzg0OSwiaXNzIjoiand0LnVzZXIifQ.jXI151RhD5ob1qJkQOM9tk0wyyvlewGXsTTlkz-jiYA',
     formId: "stform",
     });  
    st.Components(); 
  })(); 
  </script>
</body>
</html>

Replace <DOMAIN> with a supported domain. Click here for a full list.