You can handle iOS Application Subscription Server Side with Laravel.

Overview

Auto Renewing Subscriptions for iOS Apps with Laravel

This repository help you to handle iOS Application Subscription on server side.

It provides

  • Save and Check User Subscription
  • Check Webhook Logs
  • Simple Admin panel for Check App User with device token and User subscription

Getting Started

This demo for handel iOS Application Subscription server side.

Installing

  • Download the repository by cloning it or in zip format & extract to your project folder
  • Run 'composer install' to install the packages used in this project.
composer install     
  • Copy .env.example to .env & update the necessary parameters.
  • import database/migrate (apple_subscription.sql), If your importing database credential email : admin, password : admin
php artisan migrate     

How it's works?

  • There one api api/subscribe which is used for save/check subscription with parameters original_transaction_id and device_token
  • This iOS app is made for usable for without login/register, So for that we are creating user with device token.
  • For saving subscription store original_transaction_id which is we can get after apple subscription response.
  • For checking subscription we are checking end_date from database which is update from webhook, API for webhook api/webhook and URL for webhook https://example.com/api/webhook this url we have to add in Apple account and https is must for Apple webhook.
  • The end_date is updated from webhook when the some one cancel or subscription has beed expired.
  • If you want to check webhook is working fine and check logs you can check all logs at /logs

Source

  • There are not clear documentation available but you can get more details here
  • I have get all idea from this source and created this demo for others

License

This project is free for anyone who wishes to copy and replicate / customize for their needs as long as they adhere to the license terms & conditions of the packages included.

You might also like...
A bunch of general-purpose value objects you can use in your Laravel application.

Laravel Value Objects A bunch of general-purpose value objects you can use in your Laravel application. The package requires PHP ^8.0 and Laravel ^9.7

This is a Native PHP MVC. If you will build your own PHP project in MVC with router, you can clone this ready to use MVC pattern repo.

Welcome to PHP-Native-MVC-Pattern 👋 If you will build your own PHP project in MVC with router, you can clone this ready to use MVC pattern repo. Work

Iran decoration platform is an open source Php web application where you can find your job as a freelancer working in people home in decoration positions and others.

Iran-Decoration Platform Iran decoration platform is an open source Php web application where you can find your job as a freelancer working in people

This plugin can be embedded in PHP application to give the web application specific routes/href

Routes Plugin PHP This plugin can be embedded in PHP application to give the web application specific routes/href location and for entering specific/l

JSON schema models and generated code to validate and handle various data in PocketMine-MP

DataModels JSON schema models and generated code to validate and handle various data in PocketMine-MP This library uses php-json-schema-model-generato

A bundle to handle encoding and decoding of parameters using OpenSSL and Doctrine lifecycle events.

SpecShaper Encrypt Bundle A bundle to handle encoding and decoding of parameters using OpenSSL and Doctrine lifecycle events. Features include: Master

PHP library to handle IPv4, IPv6 and IP ranges

IPLib - Handle IPv4, IPv6 and IP ranges Introduction IPLib is a modern, PSR-compliant, test-driven IP addresses and subnets manipulation library. It i

A very simple way to handle self-hosted WordPress plugin updates

Simple WP Plugin Update handling A very simple way to handle self-hosted WordPress plugin updates This uses the "update_plugins_{$hostname}" filter in

JSONFinder - a library that can find json values in a mixed text or html documents, can filter and search the json tree, and converts php objects to json without 'ext-json' extension.

JSONFinder - a library that can find json values in a mixed text or html documents, can filter and search the json tree, and converts php objects to json without 'ext-json' extension.

Owner
Ajay Thakkar
Web Developer
Ajay Thakkar
iOS passbook library for PHP 5.4+

PHP PASSBOOK LIBRARY What is Passbook? Passbook is an application in iOS that allows users to store coupons, boarding passes, event tickets, store car

Eymen Gunay 256 Nov 17, 2022
It is a simple blog application coded with PHP, HTML, CSS. You can develop, edit. You can see it as a skeleton. ⚡

PHP-BLOG-SYSTEM Simple blog system Features Adding Text Update Text Text Deletion User Login and register Bootstrap Design Profile Page How to use blo

Selçuk 2 Aug 21, 2022
Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

Introduction Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services. It handles almost all of the boilerpl

The Laravel Framework 2.2k Dec 31, 2022
AppGallery IAP is a PHP library to handle AppGallery purchase verification and Server Notifications

AppGallery IAP About AppGallery IAP is a PHP library to handle AppGallery purchase verification and Server Notifications. This package simplifies deve

Dmitry 6 Aug 10, 2022
Server side analytics for Magento 2

Server Side Analytics for Magento 2 This extension aims to solve the problem of discrepancies between Magento revenue reports and the revenue reports

elgentos ecommerce solutions 46 Dec 9, 2022
A plugin that allows you to hear the sound "Welcome to the server!" when you join the server by NhanAZ for PocketMine-MP

General A plugin that allows you to hear the sound "Welcome to the server!" when you join the server by NhanAZ for PocketMine-MP Contacts You can cont

NhanAZ's PocketMine-MP Plugins 10 Sep 27, 2022
🌏 Webnux 🌏 , a videos streaming website where you can watch what you want when you want.

?? WEBNUX ?? Welcome to ?? Webnux ?? , a videos streaming website where you can watch what you want when you want. ☀️ ☀️ OBJECTIFS ☀️ ☀️ - A sessi

FrancisNtahimpera 1 Dec 3, 2021
My intention with this app is that new developers can have a concrete application with Laravel + VueJS where they can use it as example to learn the right way

My intention with this app is that new developers can have a concrete application with Laravel + VueJS where they can use it as example to learn the right way, implementing the best practices possible and at the same time learn how TDD is done. So this will be an example application but completely usable for any similar case.

Eng Hasan Hajjar 2 Sep 30, 2022
A PHP library that can be used manually as well as a CLI script that you can just run on your file

Run phpcs on files and only report new warnings/errors compared to the previous version. This is both a PHP library that can be used manually as well

Payton Swick 20 Aug 4, 2022