1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | $(document).ready( function (){
$.ajax({
url: "https://api.ehors.com" ,
method: 'POST' ,
dataType: 'xml' ,
data:{
accessID: 'ABC123' ,
accessKey: 'XYZ576abc' ,
moduleCode: 'P_TKT_CancelSalesTicketSales' ,
command: 'GP_PKGTKT_DetailsCancelSales' ,
reservationID: 'ABC1234' ,
cancellationReason : 'Cancel from a payment gateway'
},
success: function (response){
console.log(response);
}
})
});
|