PTech Charge Sale - Javascript

Description:

PTech Charge Sale script is used to authorize credit card transactions with the Paymentech NetConnect system on the Tampa platform.

Example (Javascript)


Request:

var postdata = {
  "APIKey": "00001111-71ec-4e52-bd98-a604537bf24a",
  "MerchantNumber": "600000000110",
  "TerminalNumber": "101",
  "ClientNumber": "0101",
  "UserId": "User01",
  "Password": "password1",
  "IndustryType": "pitECommerce",
  "GoodsIndicator": "giDigitalGoods",
  "CardNumber": "4444333322221111",
  "CardExpMonth": "12",
  "CardExpYear": "2021",
  "CardEntryDataSource": "edsManualEntryNoCardReader",
  "CustomerAddress": "89 Cottage St.",
  "CustomerZip": "15642",
  "TransactionAmount": "250"
};

$.ajax({
  type:           "POST",
  url:            "https://localhost:8282/ptechcharge.ps1",
  processData:    false,
  contentType:    contentType: 'application/json',
  data:           JSON.stringify(postdata),
  success:        function(data) {
    $("#result").html(JSON.stringify(data));
  }
});


Response:

{
  "ApprovalCode": "TAS097",
  "AuthorizedAmount": "100",
  "AuthSource": "5",
  "AVSResult": "M",
  "BatchNumber": "250001",
  "CardLevel": "AX*",
  "CardType": "AE",
  "Code": "A",
  "CVVResult": "CVVResult",
  "DebitSurcharge": "DebitSurcharge",
  "DebitTrace": "DebitTrace",
  "NetworkId": "06",
  "RetrievalNumber": "00000007",
  "SequenceNumber": "SequenceNumber",
  "Text": "APPROVAL"
}