PHPackages                             cgunnels/lunarphp-stripe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. cgunnels/lunarphp-stripe

ActiveProject[Payment Processing](/categories/payments)

cgunnels/lunarphp-stripe
========================

Stripe payment driver for Lunar.

1.x-dev(1y ago)07MITPHPPHP ^8.2

Since Mar 30Pushed 1y agoCompare

[ Source](https://github.com/cgunnels/lunarphp-stripe)[ Packagist](https://packagist.org/packages/cgunnels/lunarphp-stripe)[ GitHub Sponsors](https://github.com/lunar)[ RSS](/packages/cgunnels-lunarphp-stripe/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![](https://private-user-images.githubusercontent.com/1488016/271266380-59ab3f7a-3a3f-4519-a14d-254525dbcf78.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU1Njc4MjIsIm5iZiI6MTc3NTU2NzUyMiwicGF0aCI6Ii8xNDg4MDE2LzI3MTI2NjM4MC01OWFiM2Y3YS0zYTNmLTQ1MTktYTE0ZC0yNTQ1MjVkYmNmNzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDdUMTMxMjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjQzNDAyOTEzZDQ2ZDU1OWVkY2UwNzY4NGM3Zjk3YjVkNTBmZGQ5ZGIzZTNmMTQ4NzNlNTBlMzlhZWEwZjhhNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.LgtIkZuqL0TQDEN4AKoc2dxaWHIwg75nb4b0SkpZNaM)](https://private-user-images.githubusercontent.com/1488016/271266380-59ab3f7a-3a3f-4519-a14d-254525dbcf78.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU1Njc4MjIsIm5iZiI6MTc3NTU2NzUyMiwicGF0aCI6Ii8xNDg4MDE2LzI3MTI2NjM4MC01OWFiM2Y3YS0zYTNmLTQ1MTktYTE0ZC0yNTQ1MjVkYmNmNzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDdUMTMxMjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjQzNDAyOTEzZDQ2ZDU1OWVkY2UwNzY4NGM3Zjk3YjVkNTBmZGQ5ZGIzZTNmMTQ4NzNlNTBlMzlhZWEwZjhhNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.LgtIkZuqL0TQDEN4AKoc2dxaWHIwg75nb4b0SkpZNaM)

This addon enables Stripe payments on your Lunar storefront.

Alpha Release
-------------

[](#alpha-release)

This addon is currently in Alpha, whilst every step is taken to ensure this is working as intended, it will not be considered out of Alpha until more tests have been added and proved.

Tests required:
---------------

[](#tests-required)

- Successful charge response from Stripe.
- Unsuccessful charge response from Stripe.
- Test `manual` config reacts appropriately.
- Test `automatic` config reacts appropriately.
- Ensure transactions are stored correctly in the database
- Ensure that the payment intent is not duplicated when using the same Cart
- Ensure appropriate responses are returned based on Stripe's responses.
- Test refunds and partial refunds create the expected transactions
- Make sure we can manually release a payment or part payment and handle the different responses.

Minimum Requirements
--------------------

[](#minimum-requirements)

- Lunar `1.x`
- A [Stripe](http://stripe.com/) account with secret and public keys

Optional Requirements
---------------------

[](#optional-requirements)

- Laravel Livewire (if using frontend components)
- Alpinejs (if using frontend components)
- Javascript framework

Installation
------------

[](#installation)

### Require the composer package

[](#require-the-composer-package)

```
composer require lunarphp/stripe
```

### Publish the configuration

[](#publish-the-configuration)

This will publish the configuration under `config/lunar/stripe.php`.

```
php artisan vendor:publish --tag=lunar.stripe.config
```

### Publish the views (optional)

[](#publish-the-views-optional)

Lunar Stripe comes with some helper components for you to use on your checkout, if you intend to edit the views they provide, you can publish them.

```
php artisan vendor:publish --tag=lunar.stripe.components
```

### Enable the driver

[](#enable-the-driver)

Set the driver in `config/lunar/payments.php`

```
