portrino/codeception-stripe-module

There is no license information available for the latest version (dev-master) of this package.

Codeception Module for Stripe API.

dev-master 2018-02-02 09:30 UTC

This package is auto-updated.

Last update: 2021-05-19 19:11:39 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.