Shopify/active_merchant — pull request #290 by kenmazaika (2012-03-01 00:02:05+00:00)
Title: Add Support for Reference Transactions using BAIDs in Paypal Express Gateway

This is a pull request, with only the commit that adds the reference transaction from this pull request:

https://github.com/Shopify/active_merchant/pull/122

See that pull request for more details.

Implement Action for DoReferenceTransaction
-------------------------------------------------------------------

After making a purchase with BillingAgreementDetails a BillingAgreementID is returned. This ID can be passed along to the DoReferenceTransaction action to bill a user without redirecting them to a PayPal site (it's like storing a credit card).

Changes

* Adjust the version of PayPal API to be 72 (I also did this in my prior pull request).
* Add new function, reference_transaction, to the gateway
* Add private method, build_reference_transaction_request, to build the xml to send the PayPal
* Add unit tests for both reference_transaction and the private build_reference_transaction request method

If there are any changes I need to make to this in order to get this integrated let me know.