Skip to Content
Menu
This question has been flagged
4042 Rodiniai

>>> import json

>>> import requests

data={
...     "authenticateTestRequest": {
...             "merchantAuthentication": {
...                     "name": "##########",
...                     "transactionKey": "###########"
...             }
...     }
... }
>>> r=requests.post('https://apitest.authorize.net/xml/v1/request.api',json=data)
>>> r.text
'\ufeff{"messages":{"resultCode":"Error","message":[{"code":"E00003","text":"The element \'merchantAuthentication\' in namespace \'AnetApi/xml/v1/schema/AnetApiSchema.xsd\' has invalid child element \'name\' in namespace \'AnetApi/xml/v1/schema/AnetApiSchema.xsd\'. List of possible elements expected: \'mobileDeviceId\' in namespace \'AnetApi/xml/v1/schema/AnetApiSchema.xsd\'."}]}}'

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 25
575
1
rugp. 25
745
2
liep. 25
3313
3
liep. 25
912
1
birž. 25
2460