2017 © Pedro PelĂĄez
 

library codeception-stripe-module

Codeception Module for Stripe API.

image

portrino/codeception-stripe-module

Codeception Module for Stripe API.

  • Friday, February 2, 2018
  • by portrino-dev
  • Repository
  • 1 Watchers
  • 1 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 41 % Grown

The README.md

Codeception Stripe Module

Latest Stable Version Total Downloads, (*1)

Installation

You need to add the repository into your composer.json file, (*2)

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

```bash
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., (*3)

amOnDefaultAccount

  $I->amOnDefaultAccount();

Switch (back) to default account. All further API request will go through this account., (*4)

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

, (*5)

  • AndrĂ© Wuttig - Initial work - aWuttig

See also the list of contributors who participated in this project., (*6)

The Versions