Jump to content

Mike Beargie

Newbies
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mike Beargie

  • Rank
    newbie

FileMaker Experience

  • Skill Level
    Authorized Trainer
  • FM Application
    18

Platform Environment

  • OS Platform
    Mac
  • OS Version
    Mojave

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Sean, As noted in my documentation above, I am NOT receiving a transaction ID back from CCLastPaymentTransactionID when the transaction is declined. Also, in some (seemingly random) cases, that function is returning zero as a result. There is a sample response of each type of suspicious result in my original post.
  2. I've been struggling to get more verbose error logging from the CCProcessPaymentProfile script step in Plastic version 3.1 Here's the calculation I'm using to log the response to JSON: JSONSetElement ( "" ; [ "Success" ; (true or false depending on case) ; "JSONBoolean" ]; [ "ResponseMessage" ; (custom message depending on case) ; "JSONSTRING" ]; [ "TransactionID" ; CCLastPaymentTransactionID ; "JSONSTRING" ]; [ "ResultCode" ; Let(result = CCLastChargeResult ; If(result = "ERROR" ; CCLastError ; result)) ; "JSONSTRING" ]; [ "AuthorizationCode" ; Let(result = CCLastPaymentAuthCode ; If(result = "ERROR" ; CCLastError ; result)) ; "JSONSTRING" ]; [ "AVSResponse" ; Let(result = CCLastAVS ; If(result = "ERROR" ; CCLastError ; result)) ; "JSONSTRING" ]; [ "CCVResponse" ; Let(result = CCLastCCV ; If(result = "ERROR" ; CCLastError ; result)) ; "JSONSTRING" ]; [ "ApprovedAmount" ; Let(result = CCLastAmountApproved ; If(result = "ERROR" ; CCLastError ; result)) ; "JSONSTRING" ]; [ "RawResponse" ; Let(result = CCLastRawResponse ; If(result = "ERROR" ; CCLastError ; result)) ; "JSONSTRING" ] ) And here is a sample response I get back from a declined transaction: { "AVSResponse" : "P", "ApprovedAmount" : 200, "AuthorizationCode" : "", "CCVResponse" : "", "RawResponse" : 2, "ResponseMessage" : "Transaction Succeeded", "ResultCode" : 2, "Success" : 1, "TransactionID" : "" } What weirds me out on this is that there are two indicators (ApprovedAmount, ResponseMessage) that would indicate that this is a good transaction. But the TransactionID is empty so I wouldn't be able to re-query that transaction record to check if it was declined or not. I have trapped where CCLastPaymentTransactionID returns an empty value. A second "false positive" I am getting is a TransactionID being returned as zero: { "AVSResponse" : "P", "ApprovedAmount" : 200, "AuthorizationCode" : "", "CCVResponse" : "", "RawResponse" : 3, "ResponseMessage" : "No Transaction ID ", "ResultCode" : 3, "Success" : 0, "TransactionID" : 0 } This settles as a successful transaction in authorize.net with a valid TransactionID, but doesn't allow me to further track or query that transaction. This is happening maybe 2-3 times per 200 transactions I run. Documentation from Authorize.net indicates that the API endpoint URL may be incorrect if you are receiving false positive responses, but I'm not sure if that's true or not. Is there anything I'm missing for getting more verbose logging that I can decipher?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.