Session.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Stripe\Checkout; |
| 4 | |
| 5 | /** |
| 6 | * Class Session |
| 7 | * |
| 8 | * @property string $id |
| 9 | * @property string $object |
| 10 | * @property string $cancel_url |
| 11 | * @property string $client_reference_id |
| 12 | * @property string $customer |
| 13 | * @property string $customer_email |
| 14 | * @property mixed $display_items |
| 15 | * @property bool $livemode |
| 16 | * @property string $payment_intent |
| 17 | * @property string[] $payment_method_types |
| 18 | * @property string $submit_type |
| 19 | * @property string $subscription |
| 20 | * @property string $success_url |
| 21 | * |
| 22 | * @package Stripe |
| 23 | */ |
| 24 | class Session extends \Stripe\ApiResource |
| 25 | { |
| 26 | const OBJECT_NAME = "checkout.session"; |
| 27 | |
| 28 | use \Stripe\ApiOperations\Create; |
| 29 | use \Stripe\ApiOperations\Retrieve; |
| 30 | |
| 31 | /** |
| 32 | * Possible string representations of submit type. |
| 33 | * @link https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-submit_type |
| 34 | */ |
| 35 | const SUBMIT_TYPE_AUTO = 'auto'; |
| 36 | const SUBMIT_TYPE_BOOK = 'book'; |
| 37 | const SUBMIT_TYPE_DONATE = 'donate'; |
| 38 | const SUBMIT_TYPE_PAY = 'pay'; |
| 39 | } |
| 40 |