From Dryad wiki
Jump to: navigation, search

FASEB is a support organization that Dryad has contracted to perform back-office support functions and some sales functions.

Current duties

  • Management of Dryad payment plans. Track organizations and journals participating in the various plans, and send invoices. Facilitate the purchase/renewal of plans.
  • Provide front-line support for Dryad's organizational members and subscribers. (Note that front-line support for Dryad *submitters* is primarily managed by the curation staff.)
  • Reconcile transaction information between Dryad's database, FASEB's database, and PayPal's database.

AssociationAnywhere API

FASEB uses the AssociationAnywhere software to manage Dryad's memberships and payment plans. Dryad submits transaction data to AssociationAnywhere using its API. Although the AssociationAnywhere API allows us to read the status of payment plans (and dynamically determine whether a new transaction is covered by a plan), this feature is not currently used.


Development (URLs):

Production URLs:

Although the documentation mentions sending the request as a "document", the actual request is an HTTP GET that contains a single parameter. This parameter is encoded XML. To create the GET query:

  1. construct the desired input XML
  2. URL-encode the XML
  3. Add it to the target URL as a parameter with the name p_input_xml_doc

A sample Customer Info API call, with the login credentials replaced by asterisks:


A sample Credit Details API call, with the login credentials replaced by asterisks:


A sample Credits Available API call, with the login credentials replaced by asterisks:


A sample Update Credits API call, with the login credentials replaced by asterisks. Note that the cred-accepted field should be positive when adding new credits to an account, and negative when recording a transaction that deducts credit from the account.


AssociationAnywhere Client

Dryad has a command-line client that allows control of the data in AssociationAnywhere. The functionality is managed by the AssociationAnywhere class. To run it, use a command like:

/opt/dryad/bin/dspace association-anywhere [-l | -t | -u]  -i customerID [-p packageID]

The command always takes the -i argument to indicate the customerID. If this is the only argument, the available credits for the customer will be returned. If an additional flag is present, the action will be:

  • -l list all customer information
  • -t tally the use of a credit from customer (if this option is present, the packageID may also be included to record a specific data package associated with the tally, preferably formatted as a DOI)
  • -u update Dryad's amount of credits for customer, using the value currently in AssociationAnyware (this feature is not currently used -- it needs to be tested before using again)


Most of the interaction is controlled by the AssociationAnywhere class. Calls to the API are implemented by passing parameters into XML templates, and then converting these templates into URL-encoded form. The XML templates are in dspace/modules/api/src/main/resources/anywhere/request-templates.xsl.

When a data package is approved, the transaction is logged in AssociationAnywhere. The AssociationAnywhere API can only be called from specified IP addresses. Therefore, this code is deployed on the dev server for testing purposes.

Viewing transactions in AssociationAnywhere

  1. Login to the AssociationAnywhere.
  2. In the upper right corner of the screen, lookup a journal by Customer Name.
  3. Click on the journal's customer ID number in the search results.
  4. Click on the Credit History tab -- this table will display the transactions that have been processed so far. Note: This table will only show 10 items until you press the button to load the next 10. it's best to sort by date to find recent items.

Setup of customer IDs

For the AA integration to function correctly, a concept must be present in Dryad that contains

  • journal.customerID = an AA customerID
  • journal.subscriptionPaid = true
  • journal.paymentPlanType = DEFERRED or SUBSCRIPTION or PREPAID