Chilkat Online Tools

Powershell / CardPointe API Integration / Signature Capture (Retref + Signature)

Back to Collection Items

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Runtime.InteropServices.Marshal.StringToHGlobalUni(String s)
   at Chilkat.CkMarshal.StringToX(String s, XString* x)
   at Chilkat.Xml.LoadXml(String xmlData)
   at ChilkatApi.XClass.LoadClass(String className, Log log)
   at ChilkatApi.ApiCache.getApiClass(String className, Log log)
   at ChilkatApi.ApiCache.getApiMethod(String className, String methodName, Log log)
   at ChilkatCode.CodeGen.getXEntry(String className, String entryName)
   at ChilkatCode.CodeGen.getEntryType(String varName, String entryName)
   at ChilkatCode.Parser.objectAccess(String varName, Xml xml)
   at ChilkatCode.Parser.varAccess(Xml xml)
   at ChilkatCode.Parser.primaryExpression(Xml xml)
   at ChilkatCode.Parser.unaryExpression(Xml xml)
   at ChilkatCode.Parser.multiplicativeExpression(Xml xml)
   at ChilkatCode.Parser.additiveExpression(Xml xml)
   at ChilkatCode.Parser.relationalExpression(Xml xml)
   at ChilkatCode.Parser.equalityExpression(Xml xml)
   at ChilkatCode.Parser.andExpression(Xml xml)
   at ChilkatCode.Parser.expression(Xml xml)
   at ChilkatCode.Parser.assignment()
   at ChilkatCode.Parser.statement()
   at ChilkatCode.Parser.Chilkat()
   at ChilkatCode.Parser.Parse()
   at ChilkatCode.Compile.CompileForToolsIO(String srcCode, String langHashKey, StringBuilder sbHtmlOut)

Curl Command

curl -X PUT
	-H "Authorization: {{Authorization}}"
	-H "Content-Type: application/json"
	-d '{
	"merchid": "{{merchid}}",
	"retref": "{{retref}}",
	"signature": "{{signature}}"
}'
https://domain.com/sigcap

Postman Collection Item JSON

{
  "name": "Signature Capture (Retref + Signature)",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Authorization",
        "type": "text",
        "value": "{{Authorization}}"
      },
      {
        "key": "Content-Type",
        "name": "Content-Type",
        "type": "text",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n\t\"merchid\": \"{{merchid}}\",\n\t\"retref\": \"{{retref}}\",\n\t\"signature\": \"{{signature}}\"\n}"
    },
    "url": {
      "raw": "{{url}}/sigcap",
      "host": [
        "{{url}}"
      ],
      "path": [
        "sigcap"
      ]
    },
    "description": "[Signature Capture Documentation](https://developer.cardconnect.com/cardconnect-api#signature-capture)"
  },
  "response": [
    {
      "name": "Signature Capture Example",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Authorization",
            "type": "text",
            "value": "{{Authorization}}"
          },
          {
            "key": "Content-Type",
            "name": "Content-Type",
            "type": "text",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n\t\"merchid\": \"{{merchid}}\",\n\t\"retref\": \"{{retref}}\",\n\t\"signature\": \"{{signature}}\"\n}"
        },
        "url": {
          "raw": "{{url}}/sigcap",
          "host": [
            "{{url}}"
          ],
          "path": [
            "sigcap"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "X-FRAME-OPTIONS",
          "value": "DENY"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        },
        {
          "key": "Content-Length",
          "value": "96"
        },
        {
          "key": "Date",
          "value": "Thu, 10 Jan 2019 22:48:14 GMT"
        },
        {
          "key": "Server",
          "value": "CardConnect"
        },
        {
          "key": "Set-Cookie",
          "value": "BIGipServerphu-smb-vip_8080=!LjWLHiB9n9NWwsA7l1uxw4rK+VEmEdwIthKC4TazuLPJh6E1ejLYwbozqYcrk8OdOnAt3b319/yBPZ4=; path=/; Httponly; Secure"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"resptext\": \"signature stored\",\n    \"retref\": \"010787260965\",\n    \"respcode\": \"02\",\n    \"merchid\": \"496082673999\"\n}"
    }
  ]
}