| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | public function setTransient( array $savedData ): void { |
| 56 | 56 | $this->wpAdapter->setTransient( |
| 57 | 57 | $this->getTransientNamePacketaCheckoutData(), |
| 58 | 58 | $savedData, |
| 59 | - $this->getSessionExpiration() | |
| 59 | + DAY_IN_SECONDS | |
| 60 | 60 | ); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | public function deleteTransient(): void { |
| @@ -209,17 +209,6 @@ | ||
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | return true; |
| 213 | - } | |
| 214 | - | |
| 215 | - private function getSessionExpiration(): int { | |
| 216 | - $default = 2 * DAY_IN_SECONDS; | |
| 217 | - | |
| 218 | - $wcSessionExpiration = $this->wpAdapter->applyFilters( 'wc_session_expiration', $default ); | |
| 219 | - if ( is_numeric( $wcSessionExpiration ) && (int) $wcSessionExpiration > $default ) { | |
| 220 | - return (int) $wcSessionExpiration; | |
| 221 | - } | |
| 222 | - | |
| 223 | - return $default; | |
| 224 | 213 | } |
| 225 | 214 | } |