Token.php 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class Token
  5. *
  6. * @property string $id
  7. * @property string $object
  8. * @property mixed $bank_account
  9. * @property mixed $card
  10. * @property mixed $client_ip
  11. * @property int $created
  12. * @property bool $livemode
  13. * @property string $type
  14. * @property bool $used
  15. *
  16. * @package Stripe
  17. */
  18. class Token extends ApiResource
  19. {
  20. /**
  21. * @param string $id The ID of the token to retrieve.
  22. * @param array|string|null $opts
  23. *
  24. * @return Token
  25. */
  26. public static function retrieve($id, $opts = null)
  27. {
  28. return self::_retrieve($id, $opts);
  29. }
  30. /**
  31. * @param array|null $params
  32. * @param array|string|null $opts
  33. *
  34. * @return Token The created token.
  35. */
  36. public static function create($params = null, $opts = null)
  37. {
  38. return self::_create($params, $opts);
  39. }
  40. }