Dropbox is a file hosting service that can be used to store downloadable files. Storing your downloads that you intend on offering your customers in a Dropbox account not only frees up space on your server but also ensures maximum security of your file. Dropbox is ideal for storing large audio and video files that would usually slow down a website.
Delivering Downloads to Customers from Dropbox
Configuring Your Dropbox Account and Secure Downloads Settings
If you wish to use Dropbox to store downloadable files that you intend to offer your customers, complete the following steps:
Step 1) Ensure you have the Stripe Payments Plugin set up and configured on your site.
Step 2) Install and Activate the Secure Downloads Addon (this addon gives you the ability to integrate with Dropbox).
Step 3) Login to your Dropbox account here and click on the Create App button.
Step 4) From the options choose Dropbox API and Full Dropbox.
Step 5) Give your app a title. The name should be unique. For example, ‘Downloadable Items for Stripe Payments Site’.
Step 6) Click on the Create App button.
Step 7) Now that you have created your app you need to specify the chooser/saver domains. Copy your root website domain (example: yoursite.com) and add it to the Chooser/Saver Domains on the Dropbox App Page in your Dropbox account (see screenshot below for more information).
Step 8) In your WordPress account, click on Stripe Payments, Settings and then on the Secure Downloads tab.
Step 9) Enable Dropbox Integration by marking the checkbox.
Step 10) Go back to your Dropbox App and copy your App Key into the corresponding field in the Secure Downloads Settings.
Step 11) Generate your apps Access Token on the Dropbox App page, this can be found under the OAuth 2 menu. Copy the token and paste it into the Access Token field in the Secure Downloads Settings.
Step 12) You need to enable the “Enable Secure Downloads” option in the Stripe plugin. This can be found in the Secure Downloads tab of the Stripe plugin settings.
Step 13) Save Changes in the Secure Downloads Settings.
Creating a Product with a Dropbox Downloadable Item
Once you complete the steps above, you will see an additional button in the Download URL section of the Edit/Create Product page. This button is titled Choose from Dropbox. From here you will be able to add files from your Dropbox account to your product. When a customer purchases the product the file will be unknowingly downloaded from Dropbox rather than your server. This ensures maximum security of your asset.