Help Please – Using Amazon SW3 with Marketpress and/or Membership

Does anyone know of a good way to integrate the sw3 in a secure way with digital purchases (via Marketpress) or with membership files (via Membership)?

We had a file leak through the site and I need to know how to prevent it in the future.

Thank you.