Developers

We want to make payments easy for developers. Let us do the heavy lifting with these developer tools so you can simply and easily deploy payment and donation solutions.

Process Transactions

Once you have installed one of our API wrappers (in PHP, Ruby, or Java) you can get started right away with copy-and-paste code examples.

 

PHP

<?php
require 'iATS/iATS.php';

$agentCode = 'TEST88'; // Assigned by iATS
$password = 'TEST88'; // Assigned by iATS

$iATS_PL = new iATS\ProcessLink($agentCode, $password);

$request = array(
'invoiceNum' => '000001',
'creditCardNum' => '4111111111111111',
'creditCardExpiry' => '12/17',
'cvv2' => '000',
'mop' => 'VISA',
'firstName' => 'Test',
'lastName' => 'User',
'address' => '1234 Any Street',
'city' => 'City',
'state' => 'AL',
'zipCode' => '12345',
'total' => '10.00',
'currency' => 'USD',
);

//// Make the API call using the ProcessLink service.
$response = $iATS_PL->processCreditCard($request);


// Verify successful call
if (substr(trim($response['AUTHORIZATIONRESULT']),0,2) == 'OK'){

// Perform successful call logic
}

Return to Top

Java

import com.iatspayments.www.NetGate.CreateCustomerCodeAndProcessCreditCardV1;
import com.iatspayments.www.NetGate.IATSResponse;
import com.iatspayments.www.NetGate.ProcessCreditCardV1;
import com.iatspayments.www.NetGate.ProcessLinkService;

public class ChargeCreditCardWithoutToken {
public static void main(String[] args) throws Exception {
//Creates the link to the service
ProcessLinkService processLinkService = new ProcessLinkService();


//Creates the customer code
CreateCustomerCodeAndProcessCreditCardV1 createcustcode = new CreateCustomerCodeAndProcessCreditCardV1("TEST88", "TEST88","123.123.123.1", "", "4222222222222220", "03/15", "John", "Smith", "West Georgia St", "BC", "AP", "500039", "", "1");


//Creates the response which holds the customer code
IATSResponse response = processLinkService.createCustomerCodeAndProcessCreditCard(createcustcode);


ProcessCreditCardV1 processCreditCardV1 = new ProcessCreditCardV1();

processCreditCardV1.setInvoiceNum("000001");
processCreditCardV1.setCreditCardNum("4111111111111111");
processCreditCardV1.setCreditCardExpiry("12/17");
processCreditCardV1.setCvv2("000");
processCreditCardV1.setMop("VISA");
processCreditCardV1.setFirstName("Test");
processCreditCardV1.setLastName("User");
processCreditCardV1.setAddress("1234 Any Stree");
processCreditCardV1.setCity("City");
processCreditCardV1.setState("AL");
processCreditCardV1.setZipCode("12345");
processCreditCardV1.setTotal("10.00");

System.out.println("Result: " + response.getProcessResult().getAuthorizationResult());

}
}

Return to Top

Ruby

require 'iats_payments'

# North American server:
service = ProcessLinkService.new(nil)


# UK Server:
# service = ProcessLinkService.new("https://www.iatspayments.com/NetGate/ProcessLink.asmx");

processCard = ProcessCreditCardV1.new
processCard.agentCode = "TEST88"
processCard.password = "TEST88"
processCard.creditCardNum = "4222222222222220"
processCard.creditCardExpiry = "05/15"
processCard.cvv2 = "123"
processCard.mop = "VISA"
processCard.firstName = "John"
processCard.lastName = "Smith"
processCard.address = "West Georgia St"
processCard.city = "BC"
processCard.state = "AP"
processCard.zipCode = "1312"
processCard.total = "3"
processCard.comment = "Test"
response = service.processCreditCard(processCard)
puts response.PROCESSRESULT.TRANSACTIONID, "Generated Transaction Id"

Return to Top

Contact Us