PHPackages                             davidjeddy/yii2-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. davidjeddy/yii2-stripe

Abandoned → [https://github.com/ruskid/yii2-stripe](/?search=https%3A%2F%2Fgithub.com%2Fruskid%2Fyii2-stripe)ArchivedLibrary[Payment Processing](/categories/payments)

davidjeddy/yii2-stripe
======================

Yii2 Stripe Wrapper

1.2.5(10y ago)067GPL-2.0PHP

Since Mar 24Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/davidjeddy/yii2-stripe)[ Packagist](https://packagist.org/packages/davidjeddy/yii2-stripe)[ Docs](https://github.com/davidjeddy/yii2-stripe)[ RSS](/packages/davidjeddy-yii2-stripe/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

\[!WARNING\] **⚠️ This project has been archived and is no longer maintained. ⚠️**

Github has shown it does not respect its users. Other have said it better than I can.

- [https://www.theregister.com/2022/06/30/software\_freedom\_conservancy\_quits\_github/](https://www.theregister.com/2022/06/30/software_freedom_conservancy_quits_github/)
-
-
-
- [https://dev.to/alanwest/how-to-actually-migrate-from-github-to-codeberg-without-losing-your-mind-33bf&gt;](https://dev.to/alanwest/how-to-actually-migrate-from-github-to-codeberg-without-losing-your-mind-33bf%3E)

> Development has moved to Codeberg: **➡️ **
>
> Please update your remotes:
>
> ```
> git remote set-url origin https://codeberg.org/DavidJEddy/yii2-stripe
> ```

---

Yii2 Stripe Wrapper.
====================

[](#yii2-stripe-wrapper)

Badges
------

[](#badges)

[![SensioLabsInsight](https://camo.githubusercontent.com/4b1cc55d7b487b75d878f3b463cf64c1a93100d1da72bc2ade5c3bbc7d4e3d8c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66363431313433342d666462332d343161332d626330642d6238666439353136643638642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f6411434-fdb3-41a3-bc0d-b8fd9516d68d)

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

[](#installation)

The preferred way to install this extension is through .

Either run

```
php composer.phar require davidjeddy/yii2-stripe "dev-master"
```

or add

```
"davidjeddy/yii2-stripe": "~1.0"
```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Add a new component in main.php

```
'components' => [
...
'stripe' => [
    'class' => 'davidjeddy\stripe\Stripe',
    'publicKey' => "pk_test_xxxxxxxxxxxxxxxxxxx",
    'privateKey' => "sk_test_xxxxxxxxxxxxxxxxxx",
],
...
```

To render simple checkout form just call the widget in the view, it will automatically register the scripts. Check stripe documentation for more options.

```
use davidjeddy\stripe\StripeCheckout;
