I am getting 405 Method not allowed error when using <subdialog> tag with raw method.
Can you please help? Thanks.
HTTP/1.1 405 Method Not Allowed - https://ivrpv-vppp.blackhawk-net.com/AP ... ml/API.xml
DocumentParser::FetchBuffer - could not open URL: https://ivrpv-vppp.blackhawk-net.com/AP ... ml/API.xml
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri https://ivrpv-vppp.blackhawk-net.com/AP ... ml/API.xml
I have pasted the code I am using below
Code: Select all
<script>
var uKey = "\"" + getUniqueKey() + "\"";
var headers = {"requestId": uKey, "MerchantId":"60300004053"};
var JSONRequest = {
"header": headers,
"body": {
"cardNumber": card_Number,
"expirationMonth": expirationMonth,
"expirationYear": expirationYear,
"securityCode": cvv2,
"channel": channel.id
}
};
</script>
<block>
<log expr="'*****Before API Call*****' + JSON.stringify(JSONRequest)"/>
</block>
<subdialog name="verifyCard" method="raw" enctype="application/json" rawexpr="JSON.stringify(JSONRequest)" srcexpr="apiServer"/>
<block>
<log expr="'*****After API Call*****' + JSON.stringify(verifyCard)"/>
Hello <value expr="verifyCard.JSONResponse.transactionId"/>.
</block>