Skip to main content

Set Up Chargify in the Admin Console

Zuora

Set Up Chargify in the Admin Console

To enable the Chargify Extension, complete the following steps:

  1. Select the Settings icon, which is located at the top right of every screen
  2. Select Extensions
  3. Select Chargify

    Note: If you cannot see this option in your list of Extensions, contact support.

    The Chargify screen displays, as illustrated below:

    Chargify.jpg

  4. Configure the API, as described below:
    1. Select the API Configuration buttonThe API Configuration screen displays, as illustrated below:

      Chargify_API.jpg

    2. Enter your API key in the API Key text box. Note: You can find your API key in the Integrations section of your Chargify account
    3. Enter the subdomain used by Chargify in the Chargify subdomain text box. Note: The subdomain used by Chargify is the URL that you use to access your Chargify account.
    4. Select the Done button to save your API configuration and return to the Chargify screen. Selecting the Cancel button displays the Chargify screen without saving any changes
  5. Configure the payment form, as described below:
    1. Select the Payment Form Configuration button. The Payment Form Configuration screen displays, as illustrated below:

      Chargify_Payment.jpg

    2. Enter your public key in the Chargify.js Public Key text box. Note: You can find your API key in the Integrations section of your Chargify account
    3. If you want to accept PayPal payments on your site, select the Accept payPal payments checkbox. Note: The only payment gateway in Chargify that can accept PayPal payments is Braintree. Ensure that you have linked a Braintree account and configured it as the default gateway for PayPal payments in your Chargify console
    4. If you want to display fields that allows the end user to enter their first and last name, select the Show First Name/Last Name fields checkbox
    5. If you want to display a field that allows the end user to enter their Card Verification Value (CVV), select the Show CVV field checkbox
    6. If you want to display fields that allow the end user to enter their billing address, select the Show Billing Address fields checkbox. Notes:
      1. If you do not select any checkboxes that allow the user to enter information, the payment form only displays the following fields:
        • Card number
        • Expiry month
        • Expiry date
      2. The Chargify billing name and address fields correspond to billing information. The name and address user attributes in Zephr correspond to shipping information
      3. If you require country and/or state information for tax reasons but do not want to explicitly ask the end user to supply the information, you can use the Zephr Geosync extension to estimate customer location based on IP address
    7. If you have Multiple Payment Gateways enabled in Chargify, you can route payments for all products in nominated Product Families to a specific Payment Gateway. To do this, enter the gateway configuration in the Product Family -> Payment Gateway Handle Mapping (optional) text boxTo configure your gateway, you need the following information from your Chargify console:
      • The IDs of Product Families in Chargify that you want to mapTo find the IDs, complete the following steps in your Chargify console:
        1. Select Catalog
        2. Select ProductsYour products display, grouped by Product Family. The ID for the Product Family is located next to the headers.
      • The Gateway Handles for your Payment GatewaysTo find the Gateway Handles, complete the following steps in your Chargify console:

        The routing is configured using a JSON object in the following format:

        {
            "“MY_CHARGIFY_PRODUCT_FAMILY_ID"”: "“MY_PAYMENT_GATEWAY_HANDLE"”,
            ...
        }

        This configuration means that any products purchased from the product family with an ID of MY_CHARGIFY_PRODUCT_FAMILY_ID is routed to the payment gateway with a handle of MY_PAYMENT_GATEWAY_HANDLE.

        For example to configure separate gateways for PayPal and card payments, enter the following:

        {
            “My_product_family_id”: {
                “card”: “gateway_handle_for_card_payments”,
                “pay_pal”: “gateway_handle_for_paypal_payments”
            },
            ...
        }
        1. Select Config
        2. Select Payment Gateways
        3. Select a gatewayThe handle for the selected gateway displays.
    8. Select the Done button to save your payment form configuration and return to the Chargify screen. Selecting the Cancel button displays the Chargify screen without saving any changes
    9. You must recreate the payment form as a feature outcome in Zephr. For further information on creating a payment form in Zephr, see the Payment Forms section.

  6. Configure webhook notifications, as described below:
    1. Select the Notification Configuration button. The Notification Configuration screen displays, as illustrated below:

      Chargify_Payment-2.jpg

    2. Enter the shared secret to use when signing webhook notifications in the Site Shared Key text boxTo find the shared secret in your Chargify console, navigate to the Edit Current Site section

      Note: Depending on your Chargify user permissions, you might need to do this using your Chargify administrator account.

    3. Select the Done button to save your notification configuration and return to the Chargify screen. Selecting the Cancel button displays the Chargify screen without saving any changes
  7. Configure the customer records, as described below: 
    Chargify handles the billing details. However, you can use this extension to synchronise Zephr user attributes to Chargify Customer data fields; for example, to sync data relating to delivery (shipping) addresses. Note: First Name and Last Name are required in Chargify, so you must map them in Zephr. Other data fields can be mapped if required. To map values to Chargify Customer records, you must create a corresponding user attribute in the Admin Console and note the slug to use in the relevant field. For further information on creating user attributes, see the User Attributes section. For further information on the available Customer data fields on Chargify, refer to the Chargify Support documentation.

    To configure customer records, complete the following steps:

    1. Select the Customer Configuration button. The Customer Configuration screen displays, as illustrated below:

      Chargify_Customer.jpg

    2. Select the Enable Sync checkbox to allow synchronisation of Zephr user attributes and Chargify customer data fields
    3. Select the Enable Email Sync checkbox to allow synchronisation of email addresses
    4. Enter the slug of your First Name user attribute in the First Name user attribute text box
    5. Enter the slug of your Last Name user attribute in the Last Name user attribute text box
    6. If required, enter the slug of the following:
      • Your CC email user attribute in the CC Email user attribute text box
      • Your organisation user attribute in the Organization user attribute text box
      • Your reference user attribute in the Reference user attribute text box
      • Your address line 1 user attribute in the Address line 1 user attribute text box
      • Your address line 2 user attribute in the Address line 2 user attribute text box
      • Your city user attribute in the City user attribute text box
      • Your state user attribute in the State user attribute text box
      • Your zip code user attribute in the Zip Code user attribute text box
      • Your country user attribute in the Country user attribute text box
      • Your telephone user attribute in the Phone user attribute text box
      • Your locale user attribute in the Locale user attribute text box
    7. Select the Done button to save your customer records configuration and return to the Chargify screen. Selecting the Cancel button displays the Chargify screen without saving any changes
  8. If Chargify is not your current payment provider, select the Use as Payment Provider button

    Note: If Chargify is already set as your payment provider this button is disabled and labelled Active Payment Provider.

    If you currently have a different payment provider activated, a warning dialog box displays, as illustrated below:

    Chargify_Confirm-1.jpg

    Select the Confirm button to save your settings and activate Chargify as the payment provider. Selecting the Cancel button returns you to the Chargify screen without changing the payment provider.

  9. If Chargify was already set as your active payment provider, select the Save button to save your changes and return to the Extensions screen

To complete the integration, you must add a webhook in Chargify. For further information on adding a webhook in Chargify, see the Configure a Webhook in Chargify topic.