Function Reference: geodir_payment_form_handler_global

Summary

This function has not been documented yet.

Source Code

function geodir_payment_form_handler_global( $invoice_id ) {
    // Clear cart
    geodir_payment_clear_cart();

    $invoice_info = geodir_get_invoice( $invoice_id );
            
    if ( !empty( $invoice_info ) && !empty( $invoice_info->paymentmethod ) && !empty( $invoice_info->post_id ) ) {
        geodir_save_post_meta( (int)$invoice_info->post_id, 'paymentmethod', $invoice_info->paymentmethod );
    }
}