portrino/codeception-stripe-module

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

Codeception Module for Stripe API.

dev-master 2022-06-28 12:58 UTC

This package is auto-updated.

Last update: 2024-02-28 16:31:02 UTC


README

Latest Stable Version Total Downloads

Installation

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

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

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

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

  $I->amOnDefaultAccount();

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

haveStripeCustomer

  $I->haveStripeCustomer($params);

deleteStripeCustomer

  $I->deleteStripeCustomer($params);

detachStripeSource

  $I->detachStripeSource($params);

haveStripeToken

  $I->haveStripeToken($params);

haveStripeSource

  $I->haveStripeSource($params);

addStripeSourceToStripeCustomer

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

seeStripeCustomerWithId

  $I->seeStripeCustomerWithId($customerId);

grabStripeCustomerWithId

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

seeStripeChargeWithId

  $I->seeStripeChargeWithId($chargeId);

seeStripeTransferWithId

  $I->seeStripeTransferWithId($transferId);

Authors

  • André Wuttig - Initial work - aWuttig

See also the list of contributors who participated in this project.