portrino / codeception-stripe-module
Codeception Module for Stripe API.
Installs: 2 081
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 8
Forks: 1
Open Issues: 0
Requires
- codeception/codeception: ~2.3
- ocramius/package-versions: ~1.1.3
- stripe/stripe-php: ^7.62.0
Requires (Dev)
- phpstan/phpstan: ^0.8
- phpunit/phpunit: ~6.4
- squizlabs/php_codesniffer: ~3.0.2
This package is auto-updated.
Last update: 2024-02-28 16:31:02 UTC
README
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.