store("postDataFor{$paymentGatewayId}", array_map('give_clean', $_POST)); return true; } /** * Remove posted data from donation session just before rendering payment confirmation view because beyond this view this data is not useful. * * Note: Only for internal use. * * @since 2.7.0 */ public static function removePostedDataFromDonationSession() { $paymentGatewayId = ucfirst(give_clean($_GET['payment-confirmation'])); $session = new DonationAccessor(); $session->delete("postDataFor{$paymentGatewayId}"); } /** * Return whether or not we are viewing donation confirmation view or not. * * @since 2.7.0 * @return bool */ public static function isConfirming() { return FormUtils::isViewingFormReceipt() && isset($_GET['payment-confirmation']); } }