Download the PHP package muhammad-umar/ppp-stripe without Composer
On this page you can find all versions of the php package muhammad-umar/ppp-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download muhammad-umar/ppp-stripe
More information about muhammad-umar/ppp-stripe
Files in muhammad-umar/ppp-stripe
Package ppp-stripe
Short Description Purchasing Power Parity (PPP) fair pricing adjustment by countries with Stripe (or any other payment gateway supported by Laravel Cashier) integration powered by data from the World Bank
License MIT
Informations about the package ppp-stripe
Purchasing Power Parity by country with Stripe or other payment gateway (Laravel & Cashier)
Detailed article is availabe at https://docs.agenytics.com/blog/ppp-stripe
Implementing Purchasing Power Parity (PPP) pricing per country for a Stripe Checkout purchase flow. But you can use it for any other payment gateway, like PayPal, Paddle, Lemon Squeezy, etc. This package uses World Bank PPP data and TrustIP to detect VPN/Proxy.
Installation in Existing Laravel Project
-
Install the package
-
Publish the assets
Optional: You can also publish the config and migrations files:
-
Run migrations
- Import PPP data
We have used lifetime product for demonstration purposes. You can use any other product you want.
-
Configure environment variables
- Configure subscription plans
We have subscription-plans.php config file for payment products. You can configure it as you want. You should use this data to show price in frontend, sending PPPService->getAdjustedPriceData() parameter from your Controller.
- Checkout page
From fronted you should send a POST request to /purchase route (see PPPGatewayServiceProvider.php for route registration). It is binded to PurchaseController that will create a checkout session with adjusted price for the selected country.
License
MIT
All versions of ppp-stripe with dependencies
league/iso3166 Version ^4.3
laravel/cashier Version ^16.0
trustip/trustip Version ^1.1
illuminate/console Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
