I am trying to make this curl to cfhttp, but unable to get this done
C:\>curl -k https://api.juspay.in/order/create -u 320EABE1225D45E6B13DF5D3D2BBDB80: -d "amount=10.00"
response:
{
"status": "CREATED",
"status_id": 1,
"order_id": null
}
coldfusion script:
<cfhttp url='https://api.juspay.in/order/create' username="320EABE1225D45E6B13DF5D3D2BBDB80" password="" method="post" >
<cfhttpparam name="amount" type="formField" value="10">
</cfhttp>
Getting below response, while hitting through cfhttp
{ "status": "error", "error_code": "access_denied" }
but the curl was working fine.