createSubscription

Creates a subscription with Authorize.net, returning the new subscription ID.

string
createSubscription
(,
in Date startDate
,
in CustomerInfo customer
,,
in string referenceId = null
)

Parameters

subscription SubscriptionInfo

Info about the subscription itself - price, name, and interval

startDate Date

when the subscription goes into effect. The first credit card charge will come on this date.

customer CustomerInfo

basic info about the customer

card CreditCard

the credit card information to bill

referenceId string

an optional field to be stored with the subscription inside authorize.net, can be anything

Return Value

Type: string

The new subscription id from authorize.net

Throws

AuthorizeGatewayException if something goes wrong

Suggestion Box / Bug Report