You can handle iOS Application Subscription Server Side with Laravel.

Last update: Jun 29, 2022

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.

GitHub

https://github.com/ajaythakkar/Auto-Renewing-Subscriptions-for-iOS-Apps-with-Laravel
You might also like...

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

Jun 6, 2022

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

Jul 25, 2022

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

Jul 17, 2022

Transfers you to the server of your choice when you join

Automatic-Server-Transfer Transfers you to the server of your choice when you join when installed this plugin automaticly transfers you to the server

Nov 4, 2021

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.

Jul 31, 2022

Simple, modern looking server status page with administration and some nice features, that can run even on shared webhosting

Simple, modern looking server status page with administration and some nice features, that can run even on shared webhosting

Simple, modern looking server status page with administration and some nice features, that can run even on shared webhosting

Aug 8, 2022

Minimalist PHP frame for Core-Library, for Developing PHP application that gives you the full control of your application.

LazyPHP lightweight Pre-Made Frame for Core-library Install Run the below command in your terminal $ composer create-project ryzen/lazyphp my-first-pr

Jul 15, 2022

For server-to-server comms from PHP to CloudKit.

CloudKit-PHP Today I found this fantastic gist by Mauricevb that demonstrates how to communicate with CloudKit from PHP. I already had a previous proj

Oct 14, 2021

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)

COPS COPS stands for Calibre OPDS (and HTML) Php Server. See : COPS's home for more details. Don't forget to check the Wiki. Why ? In my opinion Calib

Aug 15, 2022
A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc). Based on the difflib implementation in Python

PHP Diff Class Introduction A comprehensive library for generating differences between two hashable objects (strings or arrays). Generated differences

Aug 2, 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

Aug 4, 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

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

Jun 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

Jun 23, 2022
🌏 Webnux 🌏 , a videos streaming website where you can watch what you want when you want.
🌏 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

Dec 3, 2021
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

Aug 4, 2022
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

Nov 17, 2021
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

Jul 30, 2022