Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wpforms-.../src/Integrat.../Stripe
File: Process.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace WPForms\Integrations\Stripe;
[2] Fix | Delete
[3] Fix | Delete
use Stripe\Exception\ApiErrorException;
[4] Fix | Delete
use WPForms\Helpers\Transient;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Stripe payment processing.
[8] Fix | Delete
*
[9] Fix | Delete
* @since 1.8.2
[10] Fix | Delete
*/
[11] Fix | Delete
class Process {
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Payment amount.
[15] Fix | Delete
*
[16] Fix | Delete
* @since 1.8.2
[17] Fix | Delete
*
[18] Fix | Delete
* @var string
[19] Fix | Delete
*/
[20] Fix | Delete
public $amount = '';
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Form ID.
[24] Fix | Delete
*
[25] Fix | Delete
* @since 1.8.2
[26] Fix | Delete
*
[27] Fix | Delete
* @var int
[28] Fix | Delete
*/
[29] Fix | Delete
public $form_id = 0;
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* Form Stripe payment settings.
[33] Fix | Delete
*
[34] Fix | Delete
* @since 1.8.2
[35] Fix | Delete
*
[36] Fix | Delete
* @var array
[37] Fix | Delete
*/
[38] Fix | Delete
public $settings = [];
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Sanitized submitted field values and data.
[42] Fix | Delete
*
[43] Fix | Delete
* @since 1.8.2
[44] Fix | Delete
*
[45] Fix | Delete
* @var array
[46] Fix | Delete
*/
[47] Fix | Delete
public $fields = [];
[48] Fix | Delete
[49] Fix | Delete
/**
[50] Fix | Delete
* Form data and settings.
[51] Fix | Delete
*
[52] Fix | Delete
* @since 1.8.2
[53] Fix | Delete
*
[54] Fix | Delete
* @var array
[55] Fix | Delete
*/
[56] Fix | Delete
public $form_data = [];
[57] Fix | Delete
[58] Fix | Delete
/**
[59] Fix | Delete
* Rate Limit object.
[60] Fix | Delete
*
[61] Fix | Delete
* @since 1.8.2
[62] Fix | Delete
*
[63] Fix | Delete
* @var RateLimit
[64] Fix | Delete
*/
[65] Fix | Delete
private $rate_limit;
[66] Fix | Delete
[67] Fix | Delete
/**
[68] Fix | Delete
* Api interface.
[69] Fix | Delete
*
[70] Fix | Delete
* @since 1.8.2
[71] Fix | Delete
*
[72] Fix | Delete
* @var Api\ApiInterface
[73] Fix | Delete
*/
[74] Fix | Delete
private $api;
[75] Fix | Delete
[76] Fix | Delete
/**
[77] Fix | Delete
* Whether the payment has been processed.
[78] Fix | Delete
*
[79] Fix | Delete
* @since 1.8.3
[80] Fix | Delete
*
[81] Fix | Delete
* @var bool
[82] Fix | Delete
*/
[83] Fix | Delete
private $is_payment_processed = false;
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* Save matched subscription settings.
[87] Fix | Delete
*
[88] Fix | Delete
* @since 1.8.4
[89] Fix | Delete
*
[90] Fix | Delete
* @var array
[91] Fix | Delete
*/
[92] Fix | Delete
private $subscription_settings = [];
[93] Fix | Delete
[94] Fix | Delete
/**
[95] Fix | Delete
* Initialize.
[96] Fix | Delete
*
[97] Fix | Delete
* @since 1.8.2
[98] Fix | Delete
*
[99] Fix | Delete
* @param Api\ApiInterface $api Api interface.
[100] Fix | Delete
*/
[101] Fix | Delete
public function init( $api ) {
[102] Fix | Delete
[103] Fix | Delete
$this->api = $api;
[104] Fix | Delete
[105] Fix | Delete
$this->hooks();
[106] Fix | Delete
}
[107] Fix | Delete
[108] Fix | Delete
/**
[109] Fix | Delete
* Hooks.
[110] Fix | Delete
*
[111] Fix | Delete
* @since 1.8.2
[112] Fix | Delete
*/
[113] Fix | Delete
private function hooks() {
[114] Fix | Delete
[115] Fix | Delete
add_action( 'wpforms_process', [ $this, 'process_entry' ], 10, 3 );
[116] Fix | Delete
add_action( 'wpforms_process_payment_saved', [ $this, 'process_payment_saved' ], 10, 3 );
[117] Fix | Delete
add_action( 'wpformsstripe_api_common_set_error_from_exception', [ $this, 'process_card_error' ] );
[118] Fix | Delete
add_filter( 'wpforms_forms_submission_prepare_payment_data', [ $this, 'prepare_payment_data' ] );
[119] Fix | Delete
add_filter( 'wpforms_forms_submission_prepare_payment_meta', [ $this, 'prepare_payment_meta' ], 10, 3 );
[120] Fix | Delete
add_filter( 'wpforms_entry_email_process', [ $this, 'process_email' ], 70, 4 );
[121] Fix | Delete
add_action( 'wpforms_process_complete', [ $this, 'process_entry_data' ], 10, 4 );
[122] Fix | Delete
add_filter( 'wpforms_process_bypass_captcha', [ $this, 'bypass_captcha' ] );
[123] Fix | Delete
}
[124] Fix | Delete
[125] Fix | Delete
/**
[126] Fix | Delete
* Check if a payment exists with an entry, if so validate and process.
[127] Fix | Delete
*
[128] Fix | Delete
* @since 1.8.2
[129] Fix | Delete
*
[130] Fix | Delete
* @param array $fields Final/sanitized submitted field data.
[131] Fix | Delete
* @param array $entry Copy of original $_POST.
[132] Fix | Delete
* @param array $form_data Form data and settings.
[133] Fix | Delete
*/
[134] Fix | Delete
public function process_entry( $fields, $entry, $form_data ) {
[135] Fix | Delete
[136] Fix | Delete
// Check if payment method exists and is enabled.
[137] Fix | Delete
if ( ! Helpers::has_stripe_enabled( [ $form_data ] ) ) {
[138] Fix | Delete
return;
[139] Fix | Delete
}
[140] Fix | Delete
[141] Fix | Delete
$this->form_id = (int) $form_data['id'];
[142] Fix | Delete
$this->fields = $fields;
[143] Fix | Delete
$this->form_data = $form_data;
[144] Fix | Delete
$this->settings = $form_data['payments']['stripe'];
[145] Fix | Delete
$this->amount = wpforms_get_total_payment( $this->fields );
[146] Fix | Delete
$this->rate_limit = new RateLimit();
[147] Fix | Delete
[148] Fix | Delete
$this->rate_limit->init();
[149] Fix | Delete
[150] Fix | Delete
if ( $this->is_process_entry_error() ) {
[151] Fix | Delete
return;
[152] Fix | Delete
}
[153] Fix | Delete
[154] Fix | Delete
if ( $this->is_submitted_payment_data_corrupted( $entry ) ) {
[155] Fix | Delete
return;
[156] Fix | Delete
}
[157] Fix | Delete
[158] Fix | Delete
$this->api->set_payment_tokens( $entry );
[159] Fix | Delete
[160] Fix | Delete
$error = $this->get_entry_errors();
[161] Fix | Delete
[162] Fix | Delete
// Before proceeding, check if any basic errors were detected.
[163] Fix | Delete
if ( $error ) {
[164] Fix | Delete
$this->log_error( $error );
[165] Fix | Delete
$this->display_error( $error );
[166] Fix | Delete
[167] Fix | Delete
return;
[168] Fix | Delete
}
[169] Fix | Delete
[170] Fix | Delete
$this->process_payment();
[171] Fix | Delete
}
[172] Fix | Delete
[173] Fix | Delete
/**
[174] Fix | Delete
* Bypass captcha if payment has been processed.
[175] Fix | Delete
*
[176] Fix | Delete
* @since 1.8.3
[177] Fix | Delete
*
[178] Fix | Delete
* @param bool $bypass_captcha Whether to bypass captcha.
[179] Fix | Delete
*
[180] Fix | Delete
* @return bool
[181] Fix | Delete
*/
[182] Fix | Delete
public function bypass_captcha( $bypass_captcha ) {
[183] Fix | Delete
[184] Fix | Delete
if ( $bypass_captcha ) {
[185] Fix | Delete
return $bypass_captcha;
[186] Fix | Delete
}
[187] Fix | Delete
[188] Fix | Delete
return $this->is_payment_processed;
[189] Fix | Delete
}
[190] Fix | Delete
[191] Fix | Delete
/**
[192] Fix | Delete
* Check on process entry errors.
[193] Fix | Delete
*
[194] Fix | Delete
* @since 1.8.2
[195] Fix | Delete
*
[196] Fix | Delete
* @return bool
[197] Fix | Delete
*/
[198] Fix | Delete
protected function is_process_entry_error() {
[199] Fix | Delete
[200] Fix | Delete
// Check for processing errors.
[201] Fix | Delete
if ( ! empty( wpforms()->get( 'process' )->errors[ $this->form_id ] ) || ! $this->is_card_field_visibility_ok() ) {
[202] Fix | Delete
return true;
[203] Fix | Delete
}
[204] Fix | Delete
[205] Fix | Delete
// Check rate limit.
[206] Fix | Delete
if ( ! $this->is_rate_limit_ok() ) {
[207] Fix | Delete
wpforms()->get( 'process' )->errors[ $this->form_id ]['footer'] = esc_html__( 'Unable to process payment, please try again later.', 'wpforms-lite' );
[208] Fix | Delete
[209] Fix | Delete
return true;
[210] Fix | Delete
}
[211] Fix | Delete
[212] Fix | Delete
return false;
[213] Fix | Delete
}
[214] Fix | Delete
[215] Fix | Delete
/**
[216] Fix | Delete
* Add meta for a successful payment.
[217] Fix | Delete
*
[218] Fix | Delete
* @since 1.8.2
[219] Fix | Delete
*
[220] Fix | Delete
* @param array $payment_meta Payment meta.
[221] Fix | Delete
* @param array $fields Final/sanitized submitted field data.
[222] Fix | Delete
* @param array $form_data Form data and settings.
[223] Fix | Delete
*/
[224] Fix | Delete
public function prepare_payment_meta( $payment_meta, $fields, $form_data ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
[225] Fix | Delete
[226] Fix | Delete
$payment = $this->api->get_payment();
[227] Fix | Delete
[228] Fix | Delete
if ( empty( $payment->id ) ) {
[229] Fix | Delete
return $payment_meta;
[230] Fix | Delete
}
[231] Fix | Delete
[232] Fix | Delete
$charge_details = $this->api->get_charge_details( [ 'type', 'name', 'last4', 'brand', 'exp_month', 'exp_year' ] );
[233] Fix | Delete
[234] Fix | Delete
$payment_meta['method_type'] = $this->get_payment_type( $charge_details );
[235] Fix | Delete
$payment_meta['customer_name'] = $this->get_customer_name();
[236] Fix | Delete
$payment_meta['customer_email'] = $this->get_customer_email();
[237] Fix | Delete
[238] Fix | Delete
$subscription = $this->api->get_subscription();
[239] Fix | Delete
[240] Fix | Delete
if ( ! empty( $subscription->id ) ) {
[241] Fix | Delete
$payment_meta['subscription_period'] = sanitize_text_field( $this->subscription_settings['period'] );
[242] Fix | Delete
}
[243] Fix | Delete
[244] Fix | Delete
if ( ! empty( $charge_details['brand'] ) ) {
[245] Fix | Delete
$payment_meta['credit_card_method'] = $charge_details['brand'];
[246] Fix | Delete
}
[247] Fix | Delete
[248] Fix | Delete
if ( ! empty( $charge_details['name'] ) ) {
[249] Fix | Delete
$payment_meta['credit_card_name'] = $charge_details['name'];
[250] Fix | Delete
}
[251] Fix | Delete
[252] Fix | Delete
if ( ! empty( $charge_details['last4'] ) ) {
[253] Fix | Delete
$payment_meta['credit_card_last4'] = $charge_details['last4'];
[254] Fix | Delete
}
[255] Fix | Delete
[256] Fix | Delete
if ( ! empty( $charge_details['exp_month'] ) && ! empty( $charge_details['exp_year'] ) ) {
[257] Fix | Delete
$payment_meta['credit_card_expires'] = sprintf( '%s/%s', $charge_details['exp_month'], $charge_details['exp_year'] );
[258] Fix | Delete
}
[259] Fix | Delete
[260] Fix | Delete
$log = [
[261] Fix | Delete
'value' => $payment->object === 'payment_intent' ? sprintf( 'Stripe payment intent created. (Payment Intent ID: %s)', $payment->id ) : 'Stripe payment was created.',
[262] Fix | Delete
'date' => gmdate( 'Y-m-d H:i:s' ),
[263] Fix | Delete
];
[264] Fix | Delete
[265] Fix | Delete
$payment_meta['log'] = wp_json_encode( $log );
[266] Fix | Delete
[267] Fix | Delete
return $payment_meta;
[268] Fix | Delete
}
[269] Fix | Delete
[270] Fix | Delete
/**
[271] Fix | Delete
* Get payment method type.
[272] Fix | Delete
*
[273] Fix | Delete
* @since 1.8.2.1
[274] Fix | Delete
*
[275] Fix | Delete
* @param array $charge_details Get details from a saved Charge object.
[276] Fix | Delete
*
[277] Fix | Delete
* @return string
[278] Fix | Delete
*/
[279] Fix | Delete
private function get_payment_type( $charge_details ) {
[280] Fix | Delete
[281] Fix | Delete
if ( empty( $charge_details['last4'] ) ) {
[282] Fix | Delete
return 'link';
[283] Fix | Delete
}
[284] Fix | Delete
[285] Fix | Delete
if ( ! empty( $charge_details['type'] ) ) {
[286] Fix | Delete
return sanitize_text_field( $charge_details['type'] );
[287] Fix | Delete
}
[288] Fix | Delete
[289] Fix | Delete
return 'card';
[290] Fix | Delete
}
[291] Fix | Delete
[292] Fix | Delete
/**
[293] Fix | Delete
* Add payment info for successful payment.
[294] Fix | Delete
*
[295] Fix | Delete
* @since 1.8.2
[296] Fix | Delete
*
[297] Fix | Delete
* @param int $payment_id Payment ID.
[298] Fix | Delete
* @param array $fields Final/sanitized submitted field data.
[299] Fix | Delete
* @param array $form_data Form data and settings.
[300] Fix | Delete
*/
[301] Fix | Delete
public function process_payment_saved( $payment_id, $fields, $form_data ) {
[302] Fix | Delete
[303] Fix | Delete
$payment = $this->api->get_payment();
[304] Fix | Delete
[305] Fix | Delete
if ( empty( $payment->id ) ) {
[306] Fix | Delete
return;
[307] Fix | Delete
}
[308] Fix | Delete
[309] Fix | Delete
$payment_url = add_query_arg(
[310] Fix | Delete
[
[311] Fix | Delete
'page' => 'wpforms-payments',
[312] Fix | Delete
'view' => 'payment',
[313] Fix | Delete
'payment_id' => $payment_id,
[314] Fix | Delete
],
[315] Fix | Delete
admin_url( 'admin.php' )
[316] Fix | Delete
);
[317] Fix | Delete
[318] Fix | Delete
// Update the Stripe charge metadata to include the Payment ID.
[319] Fix | Delete
$payment->metadata['payment_id'] = $payment_id;
[320] Fix | Delete
$payment->metadata['payment_url'] = esc_url_raw( $payment_url );
[321] Fix | Delete
[322] Fix | Delete
/**
[323] Fix | Delete
* Allow to add additional payment metadata to the Stripe payment.
[324] Fix | Delete
*
[325] Fix | Delete
* @since 1.8.2.2
[326] Fix | Delete
*
[327] Fix | Delete
* @param array $additional_meta Additional metadata.
[328] Fix | Delete
* @param int $payment_id Payment ID.
[329] Fix | Delete
* @param array $fields Final/sanitized submitted field data.
[330] Fix | Delete
* @param array $form_data Form data and settings.
[331] Fix | Delete
*/
[332] Fix | Delete
$additional_meta = (array) apply_filters( 'wpforms_integrations_stripe_process_additional_metadata', [], $payment_id, $fields, $form_data );
[333] Fix | Delete
[334] Fix | Delete
array_walk(
[335] Fix | Delete
$additional_meta,
[336] Fix | Delete
static function( $meta, $key ) use ( &$payment ) {
[337] Fix | Delete
$payment->metadata[ $key ] = $meta;
[338] Fix | Delete
}
[339] Fix | Delete
);
[340] Fix | Delete
[341] Fix | Delete
$payment->update( $payment->id, $payment->serializeParameters(), Helpers::get_auth_opts() );
[342] Fix | Delete
[343] Fix | Delete
$subscription = $this->api->get_subscription();
[344] Fix | Delete
[345] Fix | Delete
// Update the Stripe subscription metadata to include the Payment ID.
[346] Fix | Delete
if ( ! empty( $subscription->id ) ) {
[347] Fix | Delete
$subscription->metadata['payment_id'] = $payment_id;
[348] Fix | Delete
$subscription->metadata['payment_url'] = esc_url_raw( $payment_url );
[349] Fix | Delete
[350] Fix | Delete
$subscription->update( $subscription->id, $subscription->serializeParameters(), Helpers::get_auth_opts() );
[351] Fix | Delete
}
[352] Fix | Delete
[353] Fix | Delete
wpforms()->get( 'payment_meta' )->add_log(
[354] Fix | Delete
$payment_id,
[355] Fix | Delete
sprintf(
[356] Fix | Delete
'Stripe charge processed. (Charge ID: %1$s)',
[357] Fix | Delete
isset( $payment->latest_charge ) ? $payment->latest_charge : $payment->id
[358] Fix | Delete
)
[359] Fix | Delete
);
[360] Fix | Delete
[361] Fix | Delete
/**
[362] Fix | Delete
* Fire when processing is complete.
[363] Fix | Delete
*
[364] Fix | Delete
* @since 1.8.2
[365] Fix | Delete
*
[366] Fix | Delete
* @param array $fields Final/sanitized submitted field data.
[367] Fix | Delete
* @param array $form_data Form data and settings.
[368] Fix | Delete
* @param int $payment_id Payment ID.
[369] Fix | Delete
* @param mixed $payment Stripe payment object.
[370] Fix | Delete
* @param mixed $subscription Stripe subscription object.
[371] Fix | Delete
* @param mixed $customer Stripe customer object.
[372] Fix | Delete
*/
[373] Fix | Delete
do_action( 'wpforms_stripe_process_complete', $fields, $form_data, $payment_id, $payment, $subscription, $this->api->get_customer() ); // phpcs:ignore WPForms.PHP.ValidateHooks.InvalidHookName
[374] Fix | Delete
}
[375] Fix | Delete
[376] Fix | Delete
/**
[377] Fix | Delete
* Add details to payment data.
[378] Fix | Delete
*
[379] Fix | Delete
* @since 1.8.2
[380] Fix | Delete
*
[381] Fix | Delete
* @param array $payment_data Payment data args.
[382] Fix | Delete
*
[383] Fix | Delete
* @return array
[384] Fix | Delete
*/
[385] Fix | Delete
public function prepare_payment_data( $payment_data ) {
[386] Fix | Delete
[387] Fix | Delete
$payment = $this->api->get_payment();
[388] Fix | Delete
[389] Fix | Delete
if ( empty( $payment->id ) ) {
[390] Fix | Delete
return $payment_data;
[391] Fix | Delete
}
[392] Fix | Delete
[393] Fix | Delete
$customer = $this->api->get_customer();
[394] Fix | Delete
$subscription = $this->api->get_subscription();
[395] Fix | Delete
[396] Fix | Delete
$payment_data['status'] = 'processed';
[397] Fix | Delete
$payment_data['gateway'] = 'stripe';
[398] Fix | Delete
$payment_data['mode'] = Helpers::get_stripe_mode();
[399] Fix | Delete
$payment_data['transaction_id'] = sanitize_text_field( $payment->id );
[400] Fix | Delete
$payment_data['customer_id'] = ! empty( $customer->id ) ? sanitize_text_field( $customer->id ) : '';
[401] Fix | Delete
$payment_data['title'] = $this->get_payment_title();
[402] Fix | Delete
[403] Fix | Delete
if ( ! empty( $subscription->id ) ) {
[404] Fix | Delete
$payment_data['subscription_id'] = sanitize_text_field( $subscription->id );
[405] Fix | Delete
$payment_data['subscription_status'] = 'not-synced';
[406] Fix | Delete
}
[407] Fix | Delete
[408] Fix | Delete
return $payment_data;
[409] Fix | Delete
}
[410] Fix | Delete
[411] Fix | Delete
/**
[412] Fix | Delete
* Get Payment title.
[413] Fix | Delete
*
[414] Fix | Delete
* @since 1.8.2
[415] Fix | Delete
*
[416] Fix | Delete
* @return string Payment title.
[417] Fix | Delete
*/
[418] Fix | Delete
private function get_payment_title() {
[419] Fix | Delete
[420] Fix | Delete
$customer_name = $this->get_customer_name();
[421] Fix | Delete
[422] Fix | Delete
if ( $customer_name ) {
[423] Fix | Delete
return $customer_name;
[424] Fix | Delete
}
[425] Fix | Delete
[426] Fix | Delete
$customer_email = $this->get_customer_email();
[427] Fix | Delete
[428] Fix | Delete
if ( $customer_email ) {
[429] Fix | Delete
return $customer_email;
[430] Fix | Delete
}
[431] Fix | Delete
[432] Fix | Delete
return '';
[433] Fix | Delete
}
[434] Fix | Delete
[435] Fix | Delete
/**
[436] Fix | Delete
* Get Customer name.
[437] Fix | Delete
*
[438] Fix | Delete
* @since 1.8.2
[439] Fix | Delete
*
[440] Fix | Delete
* @return string Customer name.
[441] Fix | Delete
*/
[442] Fix | Delete
private function get_customer_name() {
[443] Fix | Delete
[444] Fix | Delete
$customer_name = $this->api->get_customer( 'name' );
[445] Fix | Delete
[446] Fix | Delete
if ( $customer_name ) {
[447] Fix | Delete
return $customer_name;
[448] Fix | Delete
}
[449] Fix | Delete
[450] Fix | Delete
$charge_details = $this->api->get_charge_details( [ 'name' ] );
[451] Fix | Delete
[452] Fix | Delete
if ( ! empty( $charge_details['name'] ) ) {
[453] Fix | Delete
return $charge_details['name'];
[454] Fix | Delete
}
[455] Fix | Delete
[456] Fix | Delete
return '';
[457] Fix | Delete
}
[458] Fix | Delete
[459] Fix | Delete
/**
[460] Fix | Delete
* Get Customer email.
[461] Fix | Delete
*
[462] Fix | Delete
* @since 1.8.2
[463] Fix | Delete
*
[464] Fix | Delete
* @return string Customer email.
[465] Fix | Delete
*/
[466] Fix | Delete
private function get_customer_email() {
[467] Fix | Delete
[468] Fix | Delete
$customer_email = $this->api->get_customer( 'email' );
[469] Fix | Delete
[470] Fix | Delete
if ( $customer_email ) {
[471] Fix | Delete
return $customer_email;
[472] Fix | Delete
}
[473] Fix | Delete
[474] Fix | Delete
$charge_details = $this->api->get_charge_details( [ 'email' ] );
[475] Fix | Delete
[476] Fix | Delete
if ( ! empty( $charge_details['email'] ) ) {
[477] Fix | Delete
return $charge_details['email'];
[478] Fix | Delete
}
[479] Fix | Delete
[480] Fix | Delete
// phpcs:disable WordPress.Security.NonceVerification.Missing
[481] Fix | Delete
if ( isset( $_POST['wpforms']['payment_link_email'] ) ) {
[482] Fix | Delete
return sanitize_email( wp_unslash( $_POST['wpforms']['payment_link_email'] ) );
[483] Fix | Delete
}
[484] Fix | Delete
// phpcs:enable WordPress.Security.NonceVerification.Missing
[485] Fix | Delete
[486] Fix | Delete
return '';
[487] Fix | Delete
}
[488] Fix | Delete
[489] Fix | Delete
/**
[490] Fix | Delete
* Logic that helps decide if we should send completed payments notifications.
[491] Fix | Delete
*
[492] Fix | Delete
* @since 1.8.2
[493] Fix | Delete
*
[494] Fix | Delete
* @param bool $process Whether to process or not.
[495] Fix | Delete
* @param array $fields Form fields.
[496] Fix | Delete
* @param array $form_data Form data.
[497] Fix | Delete
* @param int $notification_id Notification ID.
[498] Fix | Delete
*
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function