Files
Chamilo/vendor/stripe/stripe-php/lib/Terminal/OnboardingLink.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

43 lines
1.7 KiB
PHP

<?php
// File generated from our OpenAPI spec
namespace Stripe\Terminal;
/**
* Returns redirect links used for onboarding onto Tap to Pay on iPhone.
*
* @property string $object
* @property (object{apple_terms_and_conditions: null|(object{allow_relinking: null|bool, merchant_display_name: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $link_options Link type options associated with the current onboarding link object.
* @property string $link_type The type of link being generated.
* @property null|string $on_behalf_of Stripe account ID to generate the link for.
* @property string $redirect_url The link passed back to the user for their onboarding.
*/
class OnboardingLink extends \Stripe\ApiResource
{
const OBJECT_NAME = 'terminal.onboarding_link';
/**
* Creates a new <code>OnboardingLink</code> object that contains a redirect_url
* used for onboarding onto Tap to Pay on iPhone.
*
* @param null|array{expand?: string[], link_options: array{apple_terms_and_conditions?: array{allow_relinking?: bool, merchant_display_name: string}}, link_type: string, on_behalf_of?: string} $params
* @param null|array|string $options
*
* @return OnboardingLink the created resource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public static function create($params = null, $options = null)
{
self::_validateParams($params);
$url = static::classUrl();
list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
$obj->setLastResponse($response);
return $obj;
}
}