Se rendre au contenu
Menu
Cette question a été signalée
3869 Vues

>>> 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
Ignorer
Publications associées Réponses Vues Activité
1
août 25
490
2
juil. 25
2933
3
juil. 25
691
1
juin 25
2176
1
août 25
1065