Difference between revisions of "Validating the XML Message validation schema"
PlatiOnline (talk | contribs) |
PlatiOnline (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | |||
== XML Authorization == | == XML Authorization == | ||
'''Plati Online version 5.x''' | '''Plati Online version 5.x''' | ||
− | #Post URL: '''https://secure.plationline.ro/''' | + | |
− | #Request XML validation schema: '''https://secure.plationline.ro/xml_validation/po.request.v5.xsd''' | + | #Post URL: '''[https://secure.plationline.ro/ https://secure.plationline.ro/]''' |
− | #XML_Message validation schema: '''https://secure.plationline.ro/xml_validation/f_message.auth.v5.xsd''' | + | #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.xsd]''' | ||
Pseudo-code: | Pseudo-code: | ||
− | #Create the XML_Message; | + | |
− | #Create a random 32 alphanumeric '''AES KEY'''; | + | #Create the XML_Message |
− | #Encrypt the '''AES KEY''' with the '''RSA''' algorithm, this is the value of '''f_crypt_message''' tag; | + | ##for '''Payment Tokenization''' you can get the '''x_payment_token '''using '''API Query Request''' |
− | #Encrypt the '''XML_Message''' with the AES algorithm using the '''AES KEY''' and the '''IV_AUTH''', this is the value of '''f_message''' tag; | + | ##for SCA you can get '''oauth_payment_token''' implementing '''Login with Plati.online''' method |
− | #Validate the '''Request XML''' using '''https://secure.plationline.ro/xml_validation/po.request.v5.xsd''' | + | #Create a random 32 alphanumeric '''AES KEY'''; |
− | #Post SOAP (version 1.1 or 1.2) to https://secure.plationline.ro/ | + | #Encrypt the '''AES KEY''' with the '''RSA''' algorithm, this is the value of '''f_crypt_message''' tag; |
− | #*If you use SOAP 1.1 headers are: | + | #Encrypt the '''XML_Message''' with the AES algorithm using the '''AES KEY''' and the '''IV_AUTH''', this is the value of '''f_message''' tag; |
− | #*#CONTENT_TYPE = '''text/xml; charset=utf-8''' | + | #Validate the '''Request XML''' using '''[https://secure.plationline.ro/xml_validation/po.request.v5.xsd https://secure.plationline.ro/xml_validation/po.request.v5.xsd]''' |
− | #*#USER_AGENT = '''PlatiOnline-SOAP''' | + | #Post SOAP (version 1.1 or 1.2) to [https://secure.plationline.ro/ https://secure.plationline.ro/] |
− | #*#SOAPACTION = '''auth-only''' | + | #*If you use SOAP 1.1 headers are: |
− | #*If you use SOAP 1.2 headers are: | + | #*#CONTENT_TYPE = '''text/xml; charset=utf-8''' |
− | #*#CONTENT_TYPE = '''application/soap+xml; charset=utf-8; action=auth-only''' | + | #*#USER_AGENT = '''PlatiOnline-SOAP''' |
+ | #*#SOAPACTION = '''auth-only''' | ||
+ | #*If you use SOAP 1.2 headers are: | ||
+ | #*#CONTENT_TYPE = '''application/soap+xml; charset=utf-8; action=auth-only''' | ||
#*#USER_AGENT = '''PlatiOnline-SOAP''' | #*#USER_AGENT = '''PlatiOnline-SOAP''' |
Latest revision as of 19:11, 30 April 2020
XML Authorization
Plati Online version 5.x
- Post URL: https://secure.plationline.ro/
- Request XML validation schema: 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
Pseudo-code:
- Create the XML_Message
- for Payment Tokenization you can get the x_payment_token using API Query Request
- for SCA you can get oauth_payment_token implementing Login with Plati.online method
- Create a random 32 alphanumeric AES KEY;
- Encrypt the AES KEY with the RSA algorithm, this is the value of f_crypt_message tag;
- Encrypt the XML_Message with the AES algorithm using the AES KEY and the IV_AUTH, this is the value of f_message tag;
- Validate the Request XML using https://secure.plationline.ro/xml_validation/po.request.v5.xsd
- Post SOAP (version 1.1 or 1.2) to https://secure.plationline.ro/
- If you use SOAP 1.1 headers are:
- CONTENT_TYPE = text/xml; charset=utf-8
- USER_AGENT = PlatiOnline-SOAP
- SOAPACTION = auth-only
- If you use SOAP 1.2 headers are:
- CONTENT_TYPE = application/soap+xml; charset=utf-8; action=auth-only
- USER_AGENT = PlatiOnline-SOAP
- If you use SOAP 1.1 headers are: