This is the most commonly used gateway function and is responsible for charging a customer’s credit card.
Successful sale transactions will contain a 'refNumber' in the generated response. The 'refNumber' can be used to call upon this transaction in future operations such as reauthorizations or queries.
Several variations of a sale's operation type are available to be used (Level 2 and recurring). Each variation offers different features. Refer to their definitions below to determine which are most suitable for the desired integration.
https://secure.1stpaygateway.net/secure/RestGW/Gateway/Transaction/Sale
{ "merchantKey":"00000000-0000-0000-0000-000000000000", "processorId":"1000", "cardNumber": "4111111111111111", "cardExpMonth":"04", "cardExpYear":"16", "transactionAmount":"1.00", "level3Items":[{"Number":"ITM1", "Quantity":"100", "Price":"1.00", "Description":"Item 1", "UnitOfMeasure":"CGM", "ItemDiscountAmount":"0.01", "ItemDiscountRate":"0.01"}, {"Number":"ITM2", "Quantity":"200", "Price":"2.00", "Description":"Item 2", "UnitOfMeasure":"DZN", "ItemDiscountAmount":"0.02", "ItemDiscountRate":"0.02"}, {"Number":"ITM3", "Quantity":"300", "Price":"3.00", "Description":"Item 3", "UnitOfMeasure":"GRP", "ItemDiscountAmount":"0.03", "ItemDiscountRate":"0.03"}, {"Number":"ITM4", "Quantity":"400", "Price":"4.00", "Description":"Item 4", "UnitOfMeasure":"NMB", "ItemDiscountAmount":"0.04", "ItemDiscountRate":"0.04"}, {"Number":"ITM5", "Quantity":"500", "Price":"5.00", "Description":"Item 5", "UnitOfMeasure":"WSD", "ItemDiscountAmount":"0.05", "ItemDiscountRate":"0.05"}] }
Property | Description |
autoGenerateOrderId |
|
orderIdIsUnique |
|
orderId |
|
ipAddress |
|
closeDate |
|
cardNumber |
|
cardExpMonth |
|
cardExpYear |
|
cVV |
|
creditCardCryptogram |
|
creditCardToken |
|
ownerCity |
|
ownerCountry |
|
ownerEmail |
|
ownerName |
|
ownerPhone |
|
ownerState |
|
ownerStreet |
|
ownerStreet2 |
|
ownerZip |
|
preventPartial |
|
transactionAmount |
|
traceModeEnabled |
|
Property | Description |
magData |
|
ksn |
|
encryptionBlockType |
|
Property | Description |
customerRefNo |
|
localTaxFlag |
|
purchaseCard |
|
shippingZip |
|
taxAmount |
|
Property | Description |
level3Items |
|
Property | Description |
recurring |
|
recurringStartDate |
|
recurringEndDate |
|
Property | Description |
merchantKey |
|
processorId |
|
{ "isPartial":false, "partialOrder":null, "orderId":"635483057246267858", "authCode":"530139", "referenceNumber":"367045" }
{ "isPartial":true, "partialOrder":{ "partialId":"635482913467839865", "amountRemaining":20, "originalFullAmount":50, "amountApproved":30 }, "orderId":"635483057448638093", "authCode":"440099" }
{"authResponse"=>"Approved 668013", "authCode"=>"668013", "referenceNumber"=>"576570", "isPartial"=>false, "partialId"=>"", "originalFullAmount"=>0.0, "partialAmountApproved"=>0.0, "avsResponse"=>"P", "cvv2Response"=>" ", "orderId"=>"635742957909628443", "cardDeclinedMessage"=>nil, "cardDeclinedNo"=>0}
Array ( [authResponse] => Approved 873310 [authCode] => 873310 [referenceNumber] => 409043 [isPartial] => [partialId] => [originalFullAmount] => 0 [partialAmountApproved] => 0 [avsResponse] => D [cvv2Response] => [orderId] => 635678206749976610 [cardDeclinedMessage] => [cardDeclinedNo] => 0 )
{'authResponse': 'Approved 476077', 'referenceNumber': '409331', 'partialId': '', 'orderId': '635679016864599701', 'originalFullAmount': 0.0, 'cvv2Response': ' ', 'avsResponse': 'Y', 'cardDeclinedNo': 0, 'partialAmountApproved': 0.0, 'isPartial': False, 'cardDeclinedMessage': None, 'authCode': '476077'}
iOS Coming Soon
Android Coming Soon
{ authResponse = “APPROVED”, authCode = “DSC838”, referenceNumber = “21306277”, isPartial = “false”, partialId = “”, originalFullAmount = “0”, partialAmountApproved = “0”, avsResponse = “D”, cvv2Response = “P”, orderId = “635690388518267736”, cardDeclinedMessage = “”, cardDeclinedNo = “0” }