Create settings for Payflow Pro payment processor

To create settings for the Payflow Pro payment processor, you must perform the following:

  1. Create the settings object.
    Create an instance of the PayFlowProSettings class.
  2. Set the properties of the instance.
    In this example, the following properties are set:
    • PaymentType
      Gets or sets the type of the payment. For more information about the values of this property, see the Payment processors topic.
    • ProcessorCreditCards
      Gets or sets the array of credit card names that are supported by the payment method. For more information about the supported credit card names, see the Payment processors topic.
    • Timeout
      Gets or sets the timeout for post to the payment processor.
  3. Check whether the settings are intended for testing.
    If the settings are intended for testing, set the following properties:
    • ProcessingMode
      Gets or sets the processing mode of the payment method. It can have a value of either “test” or “live”.
    • TestVendor
      Gets or sets the vendor used in test mode.
    • TestUrl
      Gets or sets the URL used in test mode.
    • TestPartner
      Gets or sets the partner used in test mode.
    • TestPassword
      Gets or sets the password used in test mode.
    • TestUsername
      Gets or sets the username used in test mode.
    If the settings are intended for real-time use, set the following properties:
    • ProcessingMode
      Gets or sets the processing mode of the payment method. It can have a value of either “test” or “live”.
    • LiveVendor
      Gets or sets the vendor used in live mode.
    • LiveUrl
      Gets or sets the URL used in live mode.
    • LivePartner
      Gets or sets the partner used in live mode.
    • LivePassword
      Gets or sets the password used in live mode.
    • LiveUsername
      Gets or sets the username used in live mode.

    NOTE: The respective properties that have no prefix of "Live-" and "Test-", return the value of the test or the live property depending on the value of the TestMode property.

  4. Serialize the settings into a JSON string.
    Because the PaymentProcessorSettings property of the PaymentMethod class is of type string, you must serialize the settings into a JSON string in order to assign them to a payment method. To do this perform the following:
    1. Create an instance of the JavaScriptSerializer class.
    2. Serialize the settings by calling the Serialize method.
Here is a code example:


Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?