PluginProbe
Bookit — Booking & Appointment Calendar / 2.6.0.5
Bookit — Booking & Appointment Calendar v2.6.0.5
2.6.0.5 2.6.0.4 2.6.0.3 2.6.0.2 2.6.0.1 2.6.0 trunk 1.2 1.2.2 1.2.3 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 All 62 releases
bookit / src / Bookit / Gateways / Contracts / Abstract_Signup.php

Abstract_Signup.php in Bookit — Booking & Appointment Calendar 2.6.0.5, at src/Bookit/Gateways/Contracts/Abstract_Signup.php

52 lines 934 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Bookit\Gateways\Contracts;
4
5 /**
6 * Abstract Signup Contract
7 *
8 * @since 2.5.0
9 *
10 * @package Bookit\Gateways\Contracts
11 */
12 abstract class Abstract_Signup implements Signup_Interface {
13
14 /**
15 * Holds the transient key used to store hash passed to PayPal.
16 *
17 * @since 2.5.0
18 *
19 * @var string
20 */
21 public static $signup_hash_meta_key;
22
23 /**
24 * Holds the transient key used to link PayPal to this site.
25 *
26 * @since 2.5.0
27 *
28 * @var string
29 */
30 public static $signup_data_meta_key;
31
32 /**
33 * @inheritDoc
34 */
35 public function get_transient_data() {
36 return get_transient( static::$signup_data_meta_key );
37 }
38
39 /**
40 * @inheritDoc
41 */
42 public function update_transient_data( $value ) {
43 return set_transient( static::$signup_data_meta_key, $value, DAY_IN_SECONDS );
44 }
45
46 /**
47 * @inheritDoc
48 */
49 public function delete_transient_data() {
50 return delete_transient( static::$signup_data_meta_key );
51 }
52 }