I want to integrate Stripe into my Laravel app, and I'm wondering what is better solution for it: https://github.com/cartalyst/stripe-laravel or https://laravel.com/docs/5.3/billing?
If you're only performing "one-off" charges use the Stripe SDK directly or stripe-laravel by Cartalyst. https://cartalyst.com/manual/stripe-laravel/
If you're offering subscriptions, you should use Laravel Cashier instead. https://laravel.com/docs/5.4/billing
Related
I have created a subscription for any of product using laravel cashier and the subscription is for one month then in id of subscription user wants to sowngrade or upgrade his subscription then how can we calculate unused time on cost on existing subscription in laravel cashier.
I am not using stripe/stripe-php i am using laravel cashier
How we can preview prorations?or
What is the logic of calculationg prorations?
Laravel Cashier uses stripe/stripe-php package so you could use \Stripe\Invoice::upcoming() method.
From Cashier v13 Cashier offers a wrapper for previewing:
$invoice = $user->subscription('default')->previewInvoice('price_yearly');
You can read more about this: https://laravel.com/docs/8.x/billing#previewing-subscription-invoices.
While Stripe's API has an upcoming invoice endpoint that supports previewing changes to subscriptions (change prices, quantity, etc), it does not look like Cashier offers this functionality. Or at least nothing that sounds like an implementation of this feature is included in their documentation. You could contact them to ask about current/future support for this feature.
You can read all about Stripe's proration logic here in the docs.
Stripe and Braintree are not available in my location, so I've to use Paypal.
I'm trying to figure out the technicalities and best practices , since it's my first time integrating payments.
I'm also trying to figure how to smoothly go from a register + free access, to register + pay to access
Questions:
I want to make it a smooth transition when I decide to start charging my users for access. What do I need to set-up beforehand? Currently I haven't launched yet so I want to prepare everything I need.
Can I use cashier to manage access for users that paid but while I'm using paypal and not stripe like cashier use? (i mean to use some of cashier functionality).
note: I found a package on github (https://github.com/srmklive/laravel-paypal) that integrates paypal into a laravel app, but it uses a deprecated api from 2017.
I am new to laravel currently using the laravel 5.8 . i have the subscriptions plans to be implemented in my laravel project. I have read about how to implement subscription and came across the laravel cashier i have tried to implement it. but it gives me error i do not know where these errors as i have implemented the code according to the documentation. Can anyone please suggest me the proper working example of how to use the laravel cashier in my project.
thanks
tried to implement laravel cashier
Stripe \ Error \ InvalidRequest
This customer has no attached payment source
sometimes it says trying to call created method on null
You’re trying to create a charge for a user that doesn’t have a credit card saved.
you can follow this example
Do we have any package for Credit Card Payment in Paypal in Laravel 5.2.37?
I am already following this to link my app with Paypal : http://learninglaravel.net/integrate-paypal-sdk-into-laravel-4-laravel-5 and now want to check any package for Credit Card(Master Card/Visa)
PayPal
These packages are for PayPal only and can be used to process credit cards.
PayPal PHP SDK
PayPal Developer REST API Samples
PHPBuilder - Working with the PayPal API
17 Educations - Paypal integration in laravel
laravel-paypalpayment
laravel-paypal
Multiple Services
These packages are for more than one payment processor and include PayPal. They can be used to process credit cards.
Omnipay for Laravel 5 & Lumen
Omnipay Simple Example
Payum
Laravel Cashier (official Laravel package; supports PayPal via Braintree; meant for subscriptions / recurring billing plans)
EnvatoTuts - Process Payments With Stripe and Laravel Cashier
ItSolutionStuff - Laravel 5 Stripe example using Laravel Cashier from Scratch
I suggest you to use Omnipay
https://github.com/thephpleague/omnipay
It supports paypal and tens of other major payment providers, with a simple unique interface for all of them
Install & use instructions are on the github project page, package are available for composer
I want to integrate stripe payment gateway in my laravel 5.2 project. I gone through with four-five blog and also laravel docs, but not succeed. suggest me, good links.
Laravel official documentation
Stripe official doucmentation
Video tutorial