Skip to Content
Menu
This question has been flagged
3092 Views

>>> 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\'."}]}}'

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 24
3
0
Sep 24
344
1
Jun 24
659
1
Mar 24
905
2
Mar 24
4330