PHPackages                             devaney/codeception-stripe-module - 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. [API Development](/categories/api)
4. /
5. devaney/codeception-stripe-module

ActiveLibrary[API Development](/categories/api)

devaney/codeception-stripe-module
=================================

Codeception Module for Stripe API.

08PHP

Since Apr 27Pushed 7y agoCompare

[ Source](https://github.com/Ryan-Devaney/codeception-stripe-module)[ Packagist](https://packagist.org/packages/devaney/codeception-stripe-module)[ RSS](/packages/devaney-codeception-stripe-module/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Codeception Stripe Module
=========================

[](#codeception-stripe-module)

[![Latest Stable Version](https://camo.githubusercontent.com/90f922a086180641655aa93fc788c2289b7749386ca0a37269017449f48ab044/68747470733a2f2f706f7365722e707567782e6f72672f706f727472696e6f2f636f646563657074696f6e2d7374726970652d6d6f64756c652f762f737461626c65)](https://packagist.org/packages/portrino/codeception-stripe-module)[![Total Downloads](https://camo.githubusercontent.com/7c9d39c8348f975ee3b5ecf20ec9d6a2cf8d493a3d2a9057626165d73ef51d4f/68747470733a2f2f706f7365722e707567782e6f72672f706f727472696e6f2f636f646563657074696f6e2d7374726970652d6d6f64756c652f646f776e6c6f616473)](https://packagist.org/packages/portrino/codeception-stripe-module)

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

[](#installation)

You need to add the repository into your composer.json file

```
composer require --dev portrino/codeception-stripe-module
```

Configuration
-------------

[](#configuration)

```
modules:
    enabled:
        - Stripe:
            api_key: 'sk_test_IGvdODXxy1xXFviyAjWMiK12'
            api_version: '2017-08-15'
            connected_accounts:
                account_1:
                    api_key: 'sk_test_IGvdODXxy1xXFviyAjWMiK34'
                account_2:
                    api_key: 'sk_test_IGvdODXxy1xXFviyAjWMiK56'
```

Update codeception build

```
codecept build
```

### Methods

[](#methods)

#### amOnConnectedAccount

[](#amonconnectedaccount)

```
  $I->amOnConnectedAccount($accountName);
```

Switch to an account which is defined in the config under `connected_accounts`. All further API request will go through this account.

#### amOnDefaultAccount

[](#amondefaultaccount)

```
  $I->amOnDefaultAccount();
```

Switch (back) to default account. All further API request will go through this account.

#### haveStripeCustomer

[](#havestripecustomer)

```
  $I->haveStripeCustomer($params);
```

#### deleteStripeCustomer

[](#deletestripecustomer)

```
  $I->deleteStripeCustomer($params);
```

#### detachStripeSource

[](#detachstripesource)

```
  $I->detachStripeSource($params);
```

#### haveStripeToken

[](#havestripetoken)

```
  $I->haveStripeToken($params);
```

#### haveStripeSource

[](#havestripesource)

```
  $I->haveStripeSource($params);
```

#### addStripeSourceToStripeCustomer

[](#addstripesourcetostripecustomer)

```
  $I->addStripeSourceToStripeCustomer($customer, $source);
```

#### seeStripeCustomerWithId

[](#seestripecustomerwithid)

```
  $I->seeStripeCustomerWithId($customerId);
```

#### grabStripeCustomerWithId

[](#grabstripecustomerwithid)

```
  $customer = $I->grabStripeCustomerWithId($id);
```

#### seeStripeChargeWithId

[](#seestripechargewithid)

```
  $I->seeStripeChargeWithId($chargeId);
```

#### seeStripeTransferWithId

[](#seestripetransferwithid)

```
  $I->seeStripeTransferWithId($transferId);
```

Authors
-------

[](#authors)

[![](https://avatars0.githubusercontent.com/u/726519?s=40&v=4)](https://avatars0.githubusercontent.com/u/726519?s=40&v=4)

- **André Wuttig** - *Initial work* - [aWuttig](https://github.com/aWuttig)

See also the list of [contributors](https://github.com/portrino/codeception-stripe-module/graphs/contributors) who participated in this project.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7091410?v=4)[Liam Devaney](/maintainers/Devaney)[@Devaney](https://github.com/Devaney)

---

Top Contributors

[![Ryan-Devaney](https://avatars.githubusercontent.com/u/45183928?v=4)](https://github.com/Ryan-Devaney "Ryan-Devaney (14 commits)")[![aWuttig](https://avatars.githubusercontent.com/u/726519?v=4)](https://github.com/aWuttig "aWuttig (7 commits)")

### Embed Badge

![Health badge](/badges/devaney-codeception-stripe-module/health.svg)

```
[![Health](https://phpackages.com/badges/devaney-codeception-stripe-module/health.svg)](https://phpackages.com/packages/devaney-codeception-stripe-module)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
