portfolios

Coded Subscription WordPress Plugin for FitFoodsrx.com

Posted 10 January 2019

Plugin allow to Subscribe for weekly fitness foods. Payment will receive with Stripe and PayPal. Plugin will reorder automatically when reach appropriate time. It increased the customers. Customers don’t want to spent time orders and even they forgot payment will charge and will reorder for them.

1. Coded Subscription Logic and functions With PHP , WordPress core and Woo-Commerce API
2. Used PHP OOP , PHP filter and sanitize functions
3. Coded PayPal and Stripe API For subscriptions with WordPress HTTP API
4. We don’t Use WP Cron instead we Collect all User and payment Information from users then we send all information to PayPal and stripe thought API save in to Payment Gateways
5. Payment gateways will take care of recursion payment and it will charge once a week
6. Coded Custom endpoint in WordPress and Hooks in to Payment gateways to receive data when any specific action occurred related to subscription payment
7. Payment gateways send JSON Data to WordPress Endpoint which is hooks into Payment gateways
8. We process data and We add new Order for the customers and save all payment details
9. We used to add order we extend and used to Woo-Commerce classes
10. Added custom admin menu for show subscription details in WP admin
11. And also we added page for manage Subscriptions via my account for users
12. Customers able to cancel or reactive their subscription through page
13. We added email notifications when any event occurred which is related to subscriptions
14. Used WordPress WPDB API to save data in to Database
15. All Security concern have taken when coded , Filtered , sanitized and validate all user data and etc