Payment : Check Enable Status

function lsdd_midtrans_get_status(){
    $lsdd_payment_status = get_option( ‘lsdd_payment_status’ );
    if( ! isset( $lsdd_payment_status[ ‘paymentmidtrans’] ) ) $lsdd_payment_status[ ‘paymentmidtrans’] = ‘off’;
    return $lsdd_payment_status[ ‘paymentmidtrans’] == ‘on’ ? ‘on’ : ‘off’;
}
Was this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *