4D Payments SDK 2016 .NET Edition
4D Payments SDK 2016 .NET Edition
Questions / Feedback?

ServiceProviders Property

Array containing a list of URLs which may be used to send credit card transactions to.

Syntax

[VB.NET]
Public ReadOnlyProperty ServiceProviders As String()

[C#]
public string[] ServiceProviders {get;}

Remarks

For the North, Nashville, and Omaha platforms: This property is populated after a call to the ServiceDiscovery method, and contains a list of Service Provider URLs necessary to transport transactions from the application, through the Datawire VXN, then to the FDMS payment processor and back. You should Ping each of these URLs to determine which one has the shortest PingResponseTime, and use that URL for all subsequent credit card transactions.

For example:


  FDMSRegister.MerchantNumber = "000000999990";
  FDMSRegister.MerchantTerminalNumber = "555555";
  FDMSRegister.TransactionNumber = "0000001V002500"; //any unique number will do; check TransactionNumber property for format
  FDMSRegister.URL = "https://stagingsupport.datawire.net/staging_expresso/SRS.do";
  FDMSRegister.Register(); 
  FDMSRegister.TransactionNumber = "0000002V002500"; //any unique number will do; check TransactionNumber property for format
  FDMSRegister.Activate();
  FDMSRegister.ServiceDiscovery(FDMSRegister.PrimaryDiscoveryURL);
  for (int i = 0; i < FDMSRegister.ServiceProviders.Length; i++) {
    FDMSRegister.Ping(FDMSRegister.ServiceProviders[i]);
    Console.WriteLine(FDMSRegister.ServiceProviders[i] + " = " + FDMSRegister.PingResponseTime);
  }

For the Rapid Connect platform: This property is populated after a call to the Register method and contains a list of Service Provider URLs necessary to transport transactions from the application, through the Datawire VXN, then to the FDMS payment processor and back.

For example:


  FDMSRegister.MerchantNumber = "000000999990";
  FDMSRegister.MerchantTerminalNumber = "555555";
  FDMSRegister.Config("GroupId=10001");
  FDMSRegister.TransactionNumber = "0000001VRC1234"; //any unique number will do; check TransactionNumber property for format
  FDMSRegister.ServiceDiscovery("https://prod.dw.us.fdcnet.biz/sd/srsxml.rc");
  FDMSRegister.ApplicationId = "RAPIDCONNECTSRS";
  FDMSRegister.TransactionNumber = "0000002VRC1234" //any unique number will do; check TransactionNumber property for format
  FDMSRegister.Register(); 
  FDMSRegister.TransactionNumber = "0000003VRC1234" //any unique number will do; check TransactionNumber property for format
  FDMSRegister.Activate();

This property is read-only.

Default Value

0

 
 
Copyright (c) 2020 4D Payments Inc. - All rights reserved.
4D Payments SDK 2016 .NET Edition - Version 16.0 [Build 7422]