Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3885 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 25
144
1
ส.ค. 25
495
2
ก.ค. 25
2948
API xmlrpc - upload pdf bills to account แก้ไขแล้ว
3
ก.ค. 25
699
1
มิ.ย. 25
2185