PHPackages                             jclee100/lunar-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. jclee100/lunar-stripe

ActiveProject[Payment Processing](/categories/payments)

jclee100/lunar-stripe
=====================

Stripe payment driver for Lunar.

112PHP

Since Jul 8Pushed 2y agoCompare

[ Source](https://github.com/jclee100/lunar-stripe)[ Packagist](https://packagist.org/packages/jclee100/lunar-stripe)[ RSS](/packages/jclee100-lunar-stripe/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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.

Requirements
------------

[](#requirements)

- Lunar &gt;= `0.1`
- A [Stripe](http://stripe.com/) account with secret and public keys
- Laravel Livewire (if using frontend components)
- Alpinejs (if using frontend components)

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

[](#installation)

### Require the composer package

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

```
composer require getcandy/stripe
```

### Publish the configuration

[](#publish-the-configuration)

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

```
php artisan vendor:publish --tag=getcandy.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=getcandy.stripe.components
```

### Enable the driver

[](#enable-the-driver)

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

```
