diff --git a/.travis.yml b/.travis.yml index 96dc6bb5b..cdc4930e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ php: env: global: - - STRIPE_MOCK_VERSION=0.38.0 + - STRIPE_MOCK_VERSION=0.39.0 matrix: - AUTOLOAD=1 - AUTOLOAD=0 diff --git a/init.php b/init.php index 66a03138a..2590305aa 100644 --- a/init.php +++ b/init.php @@ -57,6 +57,7 @@ // Stripe API Resources require(dirname(__FILE__) . '/lib/Account.php'); +require(dirname(__FILE__) . '/lib/AccountLink.php'); require(dirname(__FILE__) . '/lib/AlipayAccount.php'); require(dirname(__FILE__) . '/lib/ApplePayDomain.php'); require(dirname(__FILE__) . '/lib/ApplicationFee.php'); diff --git a/lib/AccountLink.php b/lib/AccountLink.php new file mode 100644 index 000000000..f2975ae38 --- /dev/null +++ b/lib/AccountLink.php @@ -0,0 +1,21 @@ + 'Stripe\\Account', + \Stripe\AccountLink::OBJECT_NAME => 'Stripe\\AccountLink', \Stripe\AlipayAccount::OBJECT_NAME => 'Stripe\\AlipayAccount', \Stripe\ApplePayDomain::OBJECT_NAME => 'Stripe\\ApplePayDomain', \Stripe\ApplicationFee::OBJECT_NAME => 'Stripe\\ApplicationFee', diff --git a/tests/Stripe/AccountLinkTest.php b/tests/Stripe/AccountLinkTest.php new file mode 100644 index 000000000..86e6aafbb --- /dev/null +++ b/tests/Stripe/AccountLinkTest.php @@ -0,0 +1,21 @@ +expectsRequest( + 'post', + '/v1/account_links' + ); + $resource = AccountLink::create([ + "account" => "acct_123", + "failure_url" => "https://stripe.com/failure", + "success_url" => "https://stripe.com/success", + "type" => "custom_account_verification", + ]); + $this->assertInstanceOf("Stripe\\AccountLink", $resource); + } +} diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 8e261568e..c0c8999ce 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,6 +1,6 @@