Transparent Post

Recurly no longer supports the use of Transparent Post on new accounts. Please see our API documentation for other options.

Recurly's Transparent Post API allows you to host a subscription signup, transaction, and update billing information page on your website and still be PCI compliant with minimal work. When the customer submits the credit card form, the sensitive information is submitted directly to Recurly for processing. When the transaction completes, the user is redirected back to your site and you retrieve the results securely using a standard API call.

Your users will not see Recurly's website, you control the look and feel of your own signup pages, and you benefit from a reduced PCI compliance scope. Because credit card numbers do not pass through your network, your PCI compliance scope is dramatically reduced.

582

Transparent Post is not supported by the API v2 and v2 client libraries. Please consider using Recurly.js for easier integration and better error validation. Please contact support if you wish to enable transparent post for your account.

Implementation Steps

Step 1: Build a form that submits to Recurly

First, create a standard HTML form that submits results to Recurly. This form is hosted on your website. At a minimum, an uniquely identify account code and redirect URL is specified in a hidden form field. The Transparent Post API uses a private key to protect key information from being tampered with by the user. With the Recurly API, it is easy to pass additional information in the protected field.

Because the submission to Recurly only happens over HTTPS, the credit card data is fully encrypted by the user's browser. We recommend hosting your page on an HTTPS enabled web page. Modern web browsers will warn the user when a secure page submits to a non-secure page.

Step 2: Recurly processes the transaction

When the form is submitted to Recurly, Recurly will validate the input and submit the credit card authorization or transaction to your payment gateway. When the transaction completes, Recurly will redirect the user's browser to a page of your choosing. The URL will contain a result key and a confirmation key to verify that the user did not tamper with the result.

Step 3: Use the API to securely lookup the Result

After receiving the result key, use the Recurly API to lookup the result of the transaction. Upon success, the result code will be 200 and the result will contain the typical transaction results. Upon failure, the results will contain the failure error message(s) and the original form values (excluding full credit card number and CVV). This allows you to re-populate your HTML form if the transaction failed.

Configuration

The Recurly Transparent Post API uses a private key to verify that the data passed between your website and Recurly is legitimate and has not been tampered with. The Recurly Transparent Post API also uses a Recurly API key to securely lookup the results of the original request.

To setup your private key, log into your Recurly account and visit the 'Transparent Post' configuration section under the "Developer" options in the left navigation.

Demo Applications

Please see our Rails Demo App for a Rails example application using our Transparent Post API.

Client Library Support

The Transparent Post API client library support is currently limited to API v1 and the earlier PHP and Ruby client libraries.