| 1 |
<?php |
| 2 |
|
| 3 |
// File generated from our OpenAPI spec |
| 4 |
|
| 5 |
namespace Stripe\Service; |
| 6 |
|
| 7 |
class AccountLinkService extends \Stripe\Service\AbstractService |
| 8 |
{ |
| 9 |
/** |
| 10 |
* Creates an AccountLink object that includes a single-use Stripe URL that the |
| 11 |
* platform can redirect their user to in order to take them through the Connect |
| 12 |
* Onboarding flow. |
| 13 |
* |
| 14 |
* @param null|array $params |
| 15 |
* @param null|array|\Stripe\Util\RequestOptions $opts |
| 16 |
* |
| 17 |
* @throws \Stripe\Exception\ApiErrorException if the request fails |
| 18 |
* |
| 19 |
* @return \Stripe\AccountLink |
| 20 |
*/ |
| 21 |
public function create($params = null, $opts = null) |
| 22 |
{ |
| 23 |
return $this->request('post', '/v1/account_links', $params, $opts); |
| 24 |
} |
| 25 |
} |
| 26 |
|