You need to add the repository into your composer.json file
composer require --dev portrino/codeception-stripe-module
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
$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.
$I->amOnDefaultAccount();
Switch (back) to default account. All further API request will go through this account.
$I->haveStripeCustomer($params);
$I->deleteStripeCustomer($params);
$I->detachStripeSource($params);
$I->haveStripeToken($params);
$I->haveStripeSource($params);
$I->addStripeSourceToStripeCustomer($customer, $source);
$I->seeStripeCustomerWithId($customerId);
$customer = $I->grabStripeCustomerWithId($id);
$I->seeStripeChargeWithId($chargeId);
$I->seeStripeTransferWithId($transferId);
- André Wuttig - Initial work - aWuttig
See also the list of contributors who participated in this project.