02/02
2018
dev-master
9999999-devCodeception Module for Stripe API.
The Requires
The Development Requires
by Andre Wuttig
Wallogit.com
2017 © Pedro PelĂĄez
Codeception Module for Stripe API.
You need to add the repository into your composer.json file, (*2)
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
```bash
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., (*3)
$I->amOnDefaultAccount();
Switch (back) to default account. All further API request will go through this account., (*4)
$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);
, (*5)
See also the list of contributors who participated in this project., (*6)
Codeception Module for Stripe API.