/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/gateways
NameSizeModeActions
paypal/-0755rm
stripe/-0755rm
actions.php39250644editdlrm
functions.php96720644editdlrm
manual.php79820644editdlrm
offline-donations.php169160644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/gateways/manual.php (7982B)

%1$s

%2$s %3$s

', esc_html__( 'Test GiveWP with the Test Donation Gateway', 'give' ), esc_html__( 'How it works:', 'give' ), esc_html__( 'There are no fields for this gateway and you will not be charged. This payment option is only for you to test the donation experience.', 'give' ) ); return true; } add_action( 'give_manual_cc_form', 'give_manual_form_output' ); /** * Processes the donation data and uses the Manual Payment gateway to record * the donation in the Donation History * * @since 1.0 * * @param array $purchase_data Donation Data * * @return void */ function give_manual_payment( $purchase_data ) { if ( ! wp_verify_nonce( $purchase_data['gateway_nonce'], 'give-gateway' ) ) { wp_die( esc_html__( 'We\'re unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance.', 'give' ), esc_html__( 'Error', 'give' ), [ 'response' => 403 ] ); } // Create payment_data array $payment_data = [ 'price' => $purchase_data['price'], 'give_form_title' => $purchase_data['post_data']['give-form-title'], 'give_form_id' => intval( $purchase_data['post_data']['give-form-id'] ), 'give_price_id' => isset( $purchase_data['post_data']['give-price-id'] ) ? $purchase_data['post_data']['give-price-id'] : '', 'date' => $purchase_data['date'], 'user_email' => $purchase_data['user_email'], 'purchase_key' => $purchase_data['purchase_key'], 'currency' => give_get_currency( $purchase_data['post_data']['give-form-id'], $purchase_data ), 'user_info' => $purchase_data['user_info'], 'status' => 'pending', ]; // Record the pending payment $payment = give_insert_payment( $payment_data ); if ( $payment ) { give_update_payment_status( $payment, 'publish' ); give_send_to_success_page(); } else { give_record_gateway_error( esc_html__( 'Payment Error', 'give' ), sprintf( /* translators: %s: payment data */ esc_html__( 'The payment creation failed while processing a manual (free or test) donation. Payment data: %s', 'give' ), json_encode( $payment_data ) ), $payment ); // If errors are present, send the user back to the donation page so they can be corrected give_send_back_to_checkout( '?payment-mode=' . $purchase_data['post_data']['give-gateway'] ); } } add_action( 'give_gateway_manual', 'give_manual_payment' );