Re: Visa Payment Authorization issue in POSTMAN

Solved! Go to solution
ndtheo
Regular Visitor

Visa Payment Authorization issue in POSTMAN

Hello Team,

 

I am following the video from the Visa developer. Recently found from youtube channel.

 

https://www.youtube.com/watch?v=jFnUqWKXMS0

 

Following each step to generate certificate, key and other requested files.

Attached to POSTMAN as well.

 

Using API usl as per the guideline.


https://sandbox.api.visa.com/acs/v3/payments/authorizations

 

Using the Payload from the guideline.

 

{
  "msgIdentfctn": {
    "clientId": "1VISAGCT000001",
    "correlatnId": "Gg6yTAyWkmhyq0jPKHziafe"
  },
  "Body": {
    "Tx": {
      "TxAttr": [
        "INST"
      ],
      "TxDesc": "transactiondescription",
      "TxId": {
        "LclDtTm": "2016-11-25T01:02:03"
      },
      "AddtlData": {
        "Val": "freeformdata",
        "Tp": "FreeFormDescData"
      },
      "TxAmts": {
        "AmtQlfr": "ESTM",
        "TxAmt": {
          "Ccy": "008",
          "Amt": "123.45"
        }
      }
    },
    "Envt": {
      "Accptr": {
        "PaymentFacltId": "52014057",
        "CstmrSvc": "1 4155552235",
        "ShrtNm": "ABC Supplies",
        "Id": "999999999999999",
        "FrgnRtlrInd": true,
        "Adr": {
          "PstlCd": "78463",
          "CtrySubDvsnMjr": "03",
          "Ctry": "US",
          "CtrySubDvsnMnr": "011"
        }
      },
      "Termnl": {
        "TermnlId": {
          "Id": "99999999"
        }
      },
      "Wllt": {
        "Prvdr": {
          "Id": "VCIND"
        }
      },
      "Card": {
        "XpryDt": "2312",
        "PAN": "4000220177656623"
      }
    },
    "Cntxt": {
      "Vrfctn": [
        {
          "VrfctnInf": {
            "Val": {
              "HexBinryVal": "099010618111100000000788400707000000000"
            },
            "Tp": "authenticationValue"
          },
          "Tp": "THDS"
        },
        {
          "VrfctnInf": {
            "Val": {
              "TxtVal": "321"
            }
          },
          "Tp": "CSCV"
        },
        {
          "VrfctnInf": {
            "Val": {
              "TxtVal": "PO Box 12345"
            }
          },
          "Tp": "ADDB"
        },
        {
          "VrfctnInf": {
            "Val": {
              "TxtVal": "12345"
            }
          },
          "Tp": "PCDV"
        }
      ],
      "TxCntxt": {
        "MrchntCtgyCd": "3501",
        "MrchntCtgySpcfcData": "B",
        "AuthntcnOutgInd": true
      },
      "PtOfSvcCntxt": {
        "CardDataNtryMd": "CDFL"
      },
      "SaleCntxt": {
        "GoodsAndSvcsTp": "ELEC",
        "GoodsAndSvcsSubTp": "CRCU"
      }
    },
    "SplmtryData": [
      {
        "Envlp": {
          "StrngCstmrAuthntcn": {
            "Xmptn": [
              {
                "Val": "CLAI",
                "Tp": "TMBE"
              },
              {
                "Val": "NCLA",
                "Tp": "LOWA"
              }
            ],
            "DlgtdAuthrty": "CLAI"
          }
        },
        "PlcAndNm": "EUPSD2SCADataSD1V01"
      }
    ],
    "AdddmData": {
      "AddtlData": {
        "Val": "1234567890",
        "Tp": "PlanRegSysId"
      },
      "Instlmt": {
        "PmtSeqNb": "12",
        "Plan": [
          {
            "DfrrdInstlmtInd": true,
            "PrdUnit": "WEEK",
            "SbsqntAmt": "9999.99",
            "TtlNbOfPmts": 24,
            "InstlmtCcy": 840,
            "NbOfPrds": "2",
            "PlanOwnr": "ISSR",
            "GrdTtlAmt": "234.56"
          }
        ]
      }
    }
  }
}

RESPONSE :

{
    "responseStatus": {
        "status": 400,
        "code": "9125",
        "severity": "ERROR",
        "message": "Expected input credential was not present",
        "info": ""
    }
}


Also, added Authorisation as well from the video guide.

I have just done copy and paste everything from the website. Still its not working

Can you please check and do a needful to resolve this issue.

 

Regards,

Nikos

5 REPLIES 5
jenn_kh
Community Moderator

Re: Visa Payment Authorization issue in POSTMAN

Hi, @ndtheoThank you for reaching out! Our agent is looking into this and will get back to you as soon as possible. In the meantime, if any community members know of a solution, please share it here! -Jenn

API_Products
Visa Developer Support Specialist

Re: Visa Payment Authorization issue in POSTMAN

Hi @ndtheo,

 

I ran a test today and received the following request/response payload. Please see my sample request/response payload below.  Try your test again and let me know if the issue is fixed.

 

 

End Point https://sandbox.api.visa.com/acs/v1/payments/authorizations
Method POST
Request
{
"acctInfo": {"primryAcctNum": {
"panExpDt": "2019-12",
"pan": "4761739001010135"
}},
"cardAcceptr": {"clientId": "1DLMLAPPKDJ04301701"},
"freeFormDescrptnData": "Freeformdata",
"msgIdentfctn": {
"correlatnId": "auditest20180925_016",
"origId": "468352863713348"
},
"msgTransprtData": "TransportData",
"verfctnData": {"billngAddr": {
"postlCd": "12345",
"addrLn": "PO Box 12345"
}},
"transctn": {
"partialAuthInd": "true",
"eComData": {
"eciCd": "5",
"digitalGoods": "true",
"xid": "EEC4567F90123A5678B0123EA67890D2345678FF"
},
"localDtTm": "2019-02-27T19:41:43",
"posData": {
"envrnmnt": "eCom",
"panEntryMode": "OnFile",
"panSrce": "VCIND"
},
"tranAmt": {
"amt": "51.29",
"numCurrCd": "840"
},
"tranDesc": "Transactiondescription"
}
}
Response
{
"verfctnReslts": {"avsReslt": "U"},
"acctInfo": {"primryAcctNum": {"panLast4": "0135"}},
"freeFormDescrptnData": " Freeformdata",
"transctnReslts": {
"tranReslt": "Declined",
"actionCd": "15"
},
"msgTransprtData": "TransportData",
"settlmntData": {"reconDt": "--06-01"},
"transctn": {
"eComData": {"eciCd": "5"},
"tranAmt": {
"amt": "51.29",
"numCurrCd": "840"
},
"aciCd": "N"
}
}
Response Header
Status Code: 402 Payment Required
Server : nginx
Date : Tue, 31 May 2022 20:12:29 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 991
Connection : keep-alive
X-SERVED-BY : c6795c5-5w
X-CORRELATION-ID : 1654027948_861_1631926028_c6795c5-5w_VDP_WS
X-ERROR-ORIGIN : 9900
X-APP-STATUS : 402
Content-Encoding : identity
encrypted : true
Content-Language : en-US
Cache-Control : no-cache, no-store, must-revalidate
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 0
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains
Pragma : no-cache
Expires : -1

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

ndtheo
Regular Visitor

Re: Visa Payment Authorization issue in POSTMAN

My issue is resolved with MLE

Re: Visa Payment Authorization issue in POSTMAN

Hi @ndtheo @API_Products @jenn_kh 

Guys, kindly share details! 

The same error I receive((

Re: Visa Payment Authorization issue in POSTMAN

My issue is resolved with MLE