Testing Information
Many gateways have support for a test mode, whereby a live account may sent test transactions that will not be captured and settled by the gateway. This feature is available by setting the TestMode TestMode property to True. However, this feature is not supported by all gateways, and setting the TestMode to true for a Gateway that does not support the feature will cause the class to fails with an error. A list of Gateway which support the TestMode property are listed below:
- gwAuthorizeNet (1)
- gwUSAePay (7)
- gwPlanetPayment (9)
- gwMPCS (10)
- gwRTWare (11)
- gwECX (12)
- gwInnovative (14)
- gwIntuitPaymentSolutions (17)
- gwTrustCommerce (19)
- gwPSIGate (20)
- gwPayFuse (21)
- gwLinkPoint (24)
- gwFirstData (33)
- gwYourPay (34)
- gwEway (38)
- gwTransFirst (40)
- gwChase (41)
- gwWorldPay (43)
- gwSterling (45)
- gwPaymentExpress (48)
- gwMyVirtualMerchant (49)
- gwPayLeap (57)
- gwHSBC (66)
- gwBluePay (67)
- gwPayTrace (70)
- gwGoToBilling (73)
- gwAuthorizeNetXML (96)
In addition, many gateways support a test mode by changing the URL that is posted to. For these gateways, change the GatewayURL to point to a test server instead of a live server to process test transactions. A list of gateways that support test URLs (and the included URLs) follows:
Gateway | Test GatewayURL |
gwAuthorizeNet (1) | https://test.authorize.net/gateway/transact.dll |
gwIntellipay (3) | https://test.intellipay.net/LinkSmart/ |
gwPayFlowPro (6) | https://pilot-payflowpro.paypal.com |
gwPlanetPayment (9) | https://uap.txngw.com |
gwMerchantAnywhere (15) | https://web.cert.transfirst.com/ |
gwSkipjack (16) | https://developer.skipjackic.com/scripts/evolvcc.dll?AuthorizeAPI |
gw3DSI (18) | https://eclinxplus.3deltademo.com/secure/external/Transact.asp |
gwPSIGate (20) | https://dev.psigate.com:7989/Messenger/XMLMessenger |
gwPayFuse (21) | https://test5x.clearcommerce.com:11500 |
gwOrbital (23) | https://orbitalvar1.paymentech.net/authorize |
gwLinkPoint (24) | staging.linkpt.net:1129 (no https:// for this gateway) |
gwMoneris (25) - Canada | https://esqa.moneris.com/HPPDP/index.php
Moneris XML API: https://esqa.moneris.com/gateway2/servlet/MpgReques |
gwPRIGate (30) | https://web.cert.transfirst.com/ |
gwFirstData (33) | staging.linkpt.net:1129 (no https:// for this gateway) |
gwYourPay (34) | staging.linkpt.net:1129 (no https:// for this gateway) |
gwACHPAyments (35) | https://www.paymentsgateway.net/cgi-bin/posttest.pl |
gwPaymentsGateway (36) | https://www.paymentsgateway.net/cgi-bin/posttest.pl |
gwCyberSource (37) | https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/ |
gwEway (38) | Special Case: The class sets the test URLs when TestMode is True. |
gwChase (41) | staging.linkpt.net:1129 (no https:// for this gateway) |
gwTransactionCentral (44) | https://web.cert.transfirst.com/ |
gwSterling (45) | https://certify.securenet.com/API/Gateway.svc/wsHttp |
gwMyVirtualMerchant (49) | https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do |
gwMonerisUSA (52) | https://esplusqa.moneris.com/usmpg/index.php
Moneris XML API: https://esplusqa.moneris.com/gateway_us/servlet/MpgRequest |
gwSagePay (55) | https://test.sagepay.com |
gwMerchantESolutions (56) | https://test.merchante-solutions.com/mes-api/tridentApi |
gwPayLeap (57) | https://uat.payleap.com/TransactServices.svc/ProcessCreditCard |
gwWorldPayXML (59) | https://secure-test.wp3.rbsworldpay.com/jsp/merchant/xml/paymentService.jsp |
gwProPay (60) | https://xmltest.propay.com/api/propayapi.aspx |
gwQBMS (61) | https://merchantaccount.ptc.quickbooks.com/j/AppGateway |
gwHeartland (62) | https://posgateway.cert.secureexchange.net/Hps.Exchange.PosGateway/PosGatewayService.asmx |
gwLitle (63) / Vantiv | https://cert.litle.com/vap/communicator/online
Vantiv: http://www.testlitle.com/sandbox/communicator/online |
gwJetPay (65) | https://test1.jetpay.com/jetpay |
gwHSBC (66) | https://www.uat.apixml.secureepayments.hsbc.com |
gwBluePay (67) | https://secure.bluepay.com/interfaces/bp20post |
gwAdyen (68) | https://pal-test.adyen.com/pal/servlet/soap/Payment |
gwBarclay (69) | https://secure2.mde.epdq.co.uk:11500 |
gwPayTrace (70) | https://paytrace.com/api/default.pay |
gwCyberbit (72) | This gateway is no longer in service |
gwNetbanx (75) | https://webservices.test.optimalpayments.com/creditcardWS/CreditCardServlet/v1 |
gwMIT (76) | https://dev.mitec.com.mx |
gwDataCash (77) | https://testserver.datacash.com/Transaction |
gwACHFederal (78) | https://api.achfederal.com/webserviceSandbox/v2/gateway.asmx |
gwFirstDataE4 (80) | https://api.demo.globalgatewaye4.firstdata.com/transaction/v12 |
gwFirstAtlantic (81) | https://ecm.firstatlanticcommerce.com/PGServiceXML |
gwBluefin (82) | https://cert.payconex.net/api/qsapi/3.8 |
gwPayDirect (84) | https://paydirectapi.ca.link2gov.com/ |
gwFirstDataPayPoint (90) | https://apiuat.thepayplace.com/epay/epaywebservice.asmx |
gwPayvision (92) | https://testprocessor.payvisionservices.com/Gatewayv2/BasicOperationsService.svc |
gwConverge (93) | https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do |
gwMonetra (95) | https://testbox.monetra.com:8665 |
gwAuthorizeNetXML (96) | https://apitest.authorize.net/xml/v1/request.api |
gwGlobalPayroll (99) | http://demo.gpgway.com/gateway/GPGCCProcess.aspx |
gwPayWiser (100) | https://gateway.paywiser.eu/PaymentGatewayTest/PayWiserPG/ |
Any gateway that does not support the TestMode property or has an alternate GatewayURL will allow you to change your account to test mode via the online merchant interface, or via a separate test account.
Additional Test Environment Information
gwSagePay (55) | SagePay Simulator: https://test.sagepay.com/simulator
To use the simulator environment, you will need to set the following:
icharge.Customer.FirstName = "John"; //BillingFirstnames icharge.Customer.LastName = "Doe"; //BillingSurname icharge.Customer.Address = "123 Nowhere Ln"; //BillingAddress1 icharge.Customer.City = "MyCity"; //BillingCity icharge.Customer.State = "CA"; //BillingState (Optional) icharge.Customer.Zip = "90210"; //BillingPostCode icharge.Customer.Country = "US"; //BillingCountry icharge.Customer.Phone = "55555555"; //BillingPhone (Optional) //Special Fields required for Simulator icharge.SpecialFields[0].Value = "2.23"; // VPSProtocol //The below special fields are required, and in this example are set //such that the delivery information matches the customer information. icharge.AddSpecialField("DeliverySurname", "icharge.Customer.LastName."); icharge.AddSpecialField("DeliveryFirstnames", icharge.Customer.FirstName); icharge.AddSpecialField("DeliveryAddress1", icharge.Customer.Address); icharge.AddSpecialField("DeliveryCity", icharge.Customer.City); icharge.AddSpecialField("DeliveryPostCode", icharge.Customer.Zip); icharge.AddSpecialField("DeliveryCountry", icharge.Customer.Country); icharge.AddSpecialField("DeliveryState", icharge.Customer.State); //Optional icharge.AddSpecialField("DeliveryPhone", icharge.Customer.Phone); //Optional // Special Fields required for Simulator and Refunds //Response.ProcessorCode from transaction being refunded icharge2.AddSpecialField("RelatedSecurityKey", icharge.Response.ProcessorCode); //InvoiceNumber of transaction being refunded icharge2.AddSpecialField("RelatedVendorTXCode", icharge.InvoiceNumber); |