The ics_paypal_create_agreement service:
nCreates a billing agreement.
nReturns a billing agreement ID.
Before calling ics_paypal_create_agreement:
nYou must call ics_paypal_ec_set for the amount of $0.
nThe billing agreement status returned by ics_paypal_ec_get_details must indicate that the customer accepted the billing agreement.
When you request ics_paypal_create_agreement, you must include the following fields in the request:
nics_applications
nmerchant_id
nmerchant_ref_number
npaypal_token
npaypal_ec_set_request_id
npaypal_ec_set_request_token
Additional fields are optional. The required and optional fields are described in API Fields.