13
WordPress.com VIP Developer Workshop • May 5, 2015 IMPLEMENTING A PAYWALL ON WORDPRESS.COM VIP

Implementing a Paywall on WordPress.com VIP

Embed Size (px)

Citation preview

Page 1: Implementing a Paywall on WordPress.com VIP

WordPress.com VIP Developer Workshop • May 5, 2015

IMPLEMENTING A PAYWALL ON WORDPRESS.COM VIP

Page 2: Implementing a Paywall on WordPress.com VIP
Page 3: Implementing a Paywall on WordPress.com VIP
Page 4: Implementing a Paywall on WordPress.com VIP
Page 5: Implementing a Paywall on WordPress.com VIP
Page 6: Implementing a Paywall on WordPress.com VIP
Page 7: Implementing a Paywall on WordPress.com VIP
Page 8: Implementing a Paywall on WordPress.com VIP
Page 9: Implementing a Paywall on WordPress.com VIP

1) Validate login, reloads the page for logged-in users if necessary

2) Sends/receives login and logout requests

Page 10: Implementing a Paywall on WordPress.com VIP

vary_cache_on_function()

Page 11: Implementing a Paywall on WordPress.com VIP

Paywall content in the theme

Page 12: Implementing a Paywall on WordPress.com VIP

REQUIREMENTS• Non-leaky

• Blocked content does not appear in code

• Multiple providers

• Subscription fulfillment service, organization licenses, ULS-only accounts, etc.

• Portable

• Easy to implement on other sites

• Scalable

• Cached on WP VIP, Node.js-powered backend

• Respects subscription rules

• Active, inactive, unpaid, grace period, etc.

• Concurrency enforcement

• Limit on browser sessions, different limit for app users, different limit for organization licenses

Page 13: Implementing a Paywall on WordPress.com VIP

Gabriel Koen@mintindeed

Thank You

Corey Gilmore@coreygilmore