Authorize.Net Feed Meta

Introduction

The Feed Object meta for the Authorize.Net add-on is an associative array containing the properties which determine what type of transaction should occur and what values are sent to Authorize.Net.

$feed['meta'] = array(
	'feedName'                                => 'Your Feed Name',
	'transactionType'                         => 'product',
	'feed_condition_conditional_logic'        => true,
	'feed_condition_conditional_logic_object' => array(
		'conditionalLogic' => array(),
	),
);

Usage

We recommend accessing the $feed meta using the rgar() or rgars() functions, e.g.:

$conditional_logic_enabled = rgars( $feed, 'meta/feed_condition_conditional_logic' );

Properties

  • feedName string

    The feed name which appears on the add-ons feeds tab.

  • transactionType string

    The type of transaction which should occur when the feed is processed. Possible values: product or subscription.

  • billingInformation_email string

    The ID of the field containing the customer’s email.

  • billingInformation_address string

    The ID of the field containing the first line of the customer’s address.

  • billingInformation_address2 string

    The ID of the field containing the second line of the customer’s address.

  • billingInformation_city string

    The ID of the field containing the city of the customer’s address.

  • billingInformation_state string

    The ID of the field containing the state of the customer’s address.

  • billingInformation_zip string

    The ID of the field containing the zip of the customer’s address.

  • billingInformation_country string

    The ID of the field containing the country of the customer’s address.

  • enableReceipt boolean

    Send Authorize.Net email receipt? Default is false.

  • apiSettingsEnabled boolean

    Override the default API settings? Default is false.

  • overrideMode string

    Which mode should this feed use when overriding the default API settings. Possible values: production or test.

  • overrideLogin string

    The API login ID to use when overriding the default API settings.

  • overrideKey string

    The API transaction key to use when overriding the default API settings.

  • feed_condition_conditional_logic boolean

    Is the feed condition (conditional logic) setting enabled. Default is false.

  • feed_condition_conditional_logic_object array

    An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

Product Transaction Properties

The following properties are only applicable when the transactionType is set to product.

  • paymentAmount string

    What to use for the payment amount. Possible values: form_total or a product field ID

Subscription Transaction Properties

The following properties are only applicable when the transactionType is set to subscription.

  • recurringAmount string

    What to use for the recurring amount. Possible values: form_total or a product field ID

  • billingCycle_length integer

    How often should the recurring payment occur. Minimum values: 7 days or 1 month. Maximum values: 365 days or 12 months.

  • billingCycle_unit string

    What unit to use with the billingCycle_length. Possible values: day or month.

  • recurringTimes integer

    How many times the recurring payment should be made. The default (0) is to bill the customer until the subscription is canceled.

  • setupFee_enabled boolean

    Should a setup fee be charged? Default is false.

  • setupFee_product string

    The ID of the product field containing the amount the user should be charged for the setup fee.

  • trial_enabled boolean

    Should the recurring charge occur immediately or after a trial period? Default false.

  • trial_product string

    What is the source of the amount the user should be charged during the trial. Possible values: enter_amount or a product field ID.

  • trial_amount string

    The amount the user should be charged during the trial if enter_amount is selected for the trial_product.

  • update_post_action string

    Change the post status when a subscription is canceled? Possible values: draft or delete.