Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

portrino/codeception-stripe-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeception Stripe Module

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.

Releases

No releases published

Packages

No packages published

Languages