Validating the XML Message validation schema

From Wiki Plati.Online
Revision as of 16:16, 17 July 2024 by George.fatu (talk | contribs) (Created page with " == XML Authorization == '''Plati Online version 5.x''' #Post URL: '''[https://secure.plationline.ro/ https://secure.plationline.ro/]''' #Request XML validation schema: '''[https://secure.plationline.ro/xml_validation/po.request.v5.xsd https://secure.plationline.ro/xml_validation/po.request.v5.xsd]''' #XML_Message validation schema: '''[https://secure.plationline.ro/xml_validation/f_message.auth.v5.xsd https://secure.plationline.ro/xml_validation/f_message.auth.v5.xs...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

XML Authorization[edit]

Plati Online version 5.x

  1. Post URL: https://secure.plationline.ro/
  2. Request XML validation schema: https://secure.plationline.ro/xml_validation/po.request.v5.xsd
  3. XML_Message validation schema: https://secure.plationline.ro/xml_validation/f_message.auth.v5.xsd

Pseudo-code:

  1. Create the XML_Message
    1. for Payment Tokenization you can get the x_payment_token using API Query Request
    2. for SCA you can get oauth_payment_token implementing Login with Plati.online method
  2. Create a random 32 alphanumeric AES KEY;
  3. Encrypt the AES KEY with the RSA algorithm, this is the value of f_crypt_message tag;
  4. Encrypt the XML_Message with the AES algorithm using the AES KEY and the IV_AUTH, this is the value of f_message tag;
  5. Validate the Request XML using https://secure.plationline.ro/xml_validation/po.request.v5.xsd
  6. Post SOAP (version 1.1 or 1.2) to https://secure.plationline.ro/
    • If you use SOAP 1.1 headers are:
      1. CONTENT_TYPE = text/xml; charset=utf-8
      2. USER_AGENT = PlatiOnline-SOAP
      3. SOAPACTION = auth-only
    • If you use SOAP 1.2 headers are:
      1. CONTENT_TYPE = application/soap+xml; charset=utf-8; action=auth-only
      2. USER_AGENT = PlatiOnline-SOAP