TSYS E-Commerce Sale - Javascript

Description:

TSYS E-Commerce Sale script is used to authorize credit cards in both Mail Order (Direct Marketing) and eCommerce environments, Where the customer is ordering products or services via the telephone or Internet.

Example (Javascript)


Request:
var postdata = { "APIKey": "00001111-71ec-4e52-bd98-a604537bf24a", "GenKey": "GenKey_1", "MerchantId": "MerchantId_2", "RoutingId": "RoutingId_3", "CardNumber": "4444333322221111", "CardExpMonth": "12", "CardExpYear": "2021", "TransactionNumber": "1", "TransactionAmount": "100", "TransactionType": "ttECommerce" }; $.ajax({ type: "POST", url: "https://localhost:8282/tsysecommerce.ps1", processData: false, contentType: contentType: ‘application/json’, data: JSON.stringify(postdata), success: function(data) { $("#result").html(JSON.stringify(data)); } });
Response:
{ "AuthorizedAmount": "100", "BatchNumber": "250", "CardType": "Visa", "Code": "00", "ApprovalCode": "TAS097", "AVSResult": "M", "CVVResult": "M", "RetrievalNumber": "123456789101", "ReturnedACI": "N", "Text": "APPROVAL", "TransactionDate": "092016", "TransactionTime": "092522", "CommercialCardType": "tccNotCommercial", "TransactionNumber": "1001", "InstallmentAdvice": "ivNoDataPresent" }