Wordpress teması kullanıyorum yapılacak iş ücret dahilinde olacaktır mümkün ise ücret iş bittikten sonra test edilerek ödeme yapılacaktır. İşi yapacak kişi ne kadar ücret istediğini bildirir ise yanlış anlaşılmaya sebep vermeyiz.
[IMG]resimag.com/8021e08009.png[/IMG]
Edit : Resim eklendi
if( !function_exists('tourmaster_payment_method') ){
function tourmaster_payment_method(){
$payment_method = tourmaster_get_option('payment', 'payment-method', array('booking', 'paypal', 'credit-card'));
$paypal_enable = in_array('paypal', $payment_method);
$credit_card_enable = in_array('credit-card', $payment_method);
$extra_class = '';
if( $paypal_enable && $credit_card_enable ){
$extra_class .= ' tourmaster-both-online-payment';
}else if( !$paypal_enable && !$credit_card_enable ){
$extra_class .= ' tourmaster-none-online-payment';
}
$ret = '<div class="tourmaster-payment-method-wrap ' . esc_attr($extra_class) . '" >';
$ret .= '<h3 class="tourmaster-payment-method-title" >' . esc_html__('Please select a payment method', 'tourmaster') . '</h3>';
if( $paypal_enable || $credit_card_enable ){
$ret .= '<div class="tourmaster-payment-gateway clearfix" >';
if( $paypal_enable ){
$paypal_button_atts = apply_filters('tourmaster_paypal_button_atts', array());
$ret .= '<div class="tourmaster-online-payment-method tourmaster-payment-paypal" >';
$ret .= '<img src="' . esc_attr(TOURMASTER_URL) . '/images/paypal.png" alt="paypal" width="170" height="76" ';
if( !empty($paypal_button_atts['method']) && $paypal_button_atts['method'] == 'ajax' ){
$ret .= 'data-method="ajax" data-action="tourmaster_payment_selected" data-ajax="' . esc_url(TOURMASTER_AJAX_URL) . '" ';
if( !empty($paypal_button_atts['type']) ){
$ret .= 'data-action-type="' . esc_attr($paypal_button_atts['type']) . '" ';
}
}
$ret .= ' />';
if( !empty($paypal_button_atts['service-fee']) ){
if( $paypal_button_atts['service-fee'] == intval($paypal_button_atts['service-fee']) ){
$paypal_service_fee = number_format(floatval($paypal_button_atts['service-fee']), 0, '.', ',');
}else{
$paypal_service_fee = number_format(floatval($paypal_button_atts['service-fee']), 2, '.', ',');
}
$ret .= '<div class="tourmaster-payment-paypal-service-fee-text" >';
$ret .= sprintf(esc_html__('Additional %s%% is charged for PayPal payment.', 'tourmaster'), $paypal_service_fee);
$ret .= '</div>';
}
$ret .= '</div>';
}
if( $credit_card_enable ){
$payment_attr = apply_filters('goodlayers_plugin_payment_attribute', array());
$ret .= '<div class="tourmaster-online-payment-method tourmaster-payment-credit-card" >';
$ret .= '<img src="' . esc_attr(TOURMASTER_URL) . '/images/credit-card.png" alt="credit-card" width="170" height="76" ';
if( !empty($payment_attr['method']) && $payment_attr['method'] == 'ajax' ){
$ret .= 'data-method="ajax" data-action="tourmaster_payment_selected" data-ajax="' . esc_url(TOURMASTER_AJAX_URL) . '" ';
if( !empty($payment_attr['type']) ){
$ret .= 'data-action-type="' . esc_attr($payment_attr['type']) . '" ';
}
}
$ret .= ' />';
$credit_card_types = tourmaster_get_option('payment', 'accepted-credit-card-type', array('visa', 'master-card', 'american-express', 'jcb'));
if( !empty($credit_card_types) ){
$ret .= '<div class="tourmaster-payment-credit-card-type" >';
foreach( $credit_card_types as $type ){
$ret .= '<img src="' . esc_attr(TOURMASTER_URL) . '/images/' . esc_attr($type) . '.png" alt="' . esc_attr($type) . '" />';
}
$ret .= '</div>';
}
$ret .= '</div>';
}
$ret .= '</div>'; // tourmaster-payment-gateway
}
if( in_array('booking', $payment_method) ){
if( sizeof($payment_method) > 1 ){
$ret .= '<div class="tourmaster-payment-method-or" id="tourmaster-payment-method-or" >';
$ret .= '<span class="tourmaster-left" ></span>';
$ret .= '<span class="tourmaster-middle" >' . esc_html__('OR', 'tourmaster') . '</span>';
$ret .= '<span class="tourmaster-right" ></span>';
$ret .= '</div>'; // tourmaster-payment-method-or
}
$ret .= '<div class="tourmaster-payment-method-booking" >';
if( is_user_logged_in() ){
$ret .= '<a class="tourmaster-button tourmaster-payment-method-booking-button tourmaster-payment-step" data-name="payment-method" data-value="booking" data-step="4" >';
$ret .= esc_html__('Book and pay later', 'tourmaster');
$ret .= '</a>';
}else{
$book_by_email = tourmaster_get_option('general', 'enable-booking-via-email', 'enable');
if( $book_by_email == 'enable' ){
$ret .= '<a class="tourmaster-button tourmaster-payment-method-booking-button tourmaster-payment-step" data-name="payment-method" data-value="booking" data-step="4" >';
$ret .= esc_html__('Book now via email', 'tourmaster');
$ret .= '</a>';
}else{
$ret .= '<a class="tourmaster-button tourmaster-payment-method-booking-button" data-tmlb="book-and-pay-later-login" >';
$ret .= esc_html__('Book and pay later', 'tourmaster');
$ret .= '</a>';
$ret .= tourmaster_lightbox_content(array(
'id' => 'book-and-pay-later-login',
'title' => esc_html__('To book and pay later requires an account', 'tourmaster'),
'content' => tourmaster_get_login_form2(false, array(
'redirect'=>'payment'
))
));
}
}
if( is_user_logged_in() ){
$ret .= '<div class="tourmaster-payment-method-description" >';
$ret .= esc_html__('* If you wish to do a bank transfer, please select "Book and pay later" button.', 'tourmaster');
$ret .= '<br>' . esc_html__('You will have an option to submit payment receipt on your dashboard page.', 'tourmaster');
$ret .= '</div>';
}
$ret .= '</div>'; // tourmaster-payment-method-booking
}
$our_term = tourmaster_get_option('payment', 'term-of-service-page', '#');
$our_term = is_numeric($our_term)? get_permalink($our_term): $our_term;
$privacy = tourmaster_get_option('payment', 'privacy-statement-page', '#');
$privacy = is_numeric($privacy)? get_permalink($privacy): $privacy;
$ret .= '<div class="tourmaster-payment-terms" >';
$ret .= '<input type="checkbox" id="checkbox2" >To continue meanssss you\'re okay with our <a href="%s" target="_blank">Terms of Service</a> and <a href="%s" target="_blank">Privacy Statement"</a>.</i>';
$ret .= '<div class="tourmaster-tour-booking-required-error tourmaster-notification-box tourmaster-failure">' . esc_html__('Please fill all required fields.', 'tourmaster') . '</div>';
$ret .= '</div>'; // tourmaster-payment-terms
$ret .= '</div>'; // tourmaster-payment-method-wrap
return $ret;
}
}
if( !function_exists('tourmaster_payment_complete') ){
function tourmaster_payment_complete(){
$ret = '<div class="tourmaster-payment-complete-wrap" >';
$ret .= '<div class="tourmaster-payment-complete-head" >' . esc_html__('Booking Completed!', 'tourmaster') . '</div>';
$ret .= '<div class="tourmaster-payment-complete-content-wrap" >';
$ret .= '<i class=" icon_check_alt2 tourmaster-payment-complete-icon" ></i>';
$ret .= '<div class="tourmaster-payment-complete-thank-you" >' . esc_html__('Thank you!', 'tourmaster') . '</div>';
$ret .= '<div class="tourmaster-payment-complete-content" >';
$ret .= wp_kses(__('Your booking detail has been sent to your email. <br> You can check the payment status from your dashboard.', 'tourmaster'), array('br'=>array()));
$ret .= '</div>'; // tourmaster-payment-complete-content
if( is_user_logged_in() ){
$ret .= '<a class="tourmaster-payment-complete-button tourmaster-button" href="' . tourmaster_get_template_url('user') . '" >' . esc_html__('Go to my dashboard', 'tourmaster') . '</a>';
}else{
$ret .= '<a class="tourmaster-payment-complete-button tourmaster-button" href="' . esc_url(home_url("/")) . '" >' . esc_html__('Go to homepage', 'tourmaster') . '</a>';
}
$bottom_text = tourmaster_get_option('general', 'payment-complete-bottom-text', '');
if( !empty($bottom_text) ){
$ret .= '<div class="tourmaster-payment-complete-bottom-text" >';
$ret .= tourmaster_content_filter($bottom_text);
$ret .= '</div>';
}
$ret .= '</div>'; // tourmaster-payment-complete-content-wrap
$ret .= '</div>'; // tourmaster-payment-complete-wrap
return $ret;
}
}
if( !function_exists('tourmaster_payment_complete_delay') ){
function tourmaster_payment_complete_delay(){
$ret = '<div class="tourmaster-payment-complete-wrap" >';
$ret .= '<div class="tourmaster-payment-complete-head" >' . esc_html__('Booking Completed!', 'tourmaster') . '</div>';
$ret .= '<div class="tourmaster-payment-complete-content-wrap" >';
$ret .= '<i class=" icon_check_alt2 tourmaster-payment-complete-icon" ></i>';
$ret .= '<div class="tourmaster-payment-complete-thank-you" >' . esc_html__('Thank you!', 'tourmaster') . '</div>';
$ret .= '<div class="tourmaster-payment-complete-content" >';
$ret .= wp_kses(__('Your booking detail will be sent to your email shortly. <br> You can check the payment status from your dashboard.<br> ( There might be some delay processing the paypal payment )', 'tourmaster'), array('br'=>array()));
$ret .= '</div>'; // tourmaster-payment-complete-content
if( is_user_logged_in() ){
$ret .= '<a class="tourmaster-payment-complete-button tourmaster-button" href="' . tourmaster_get_template_url('user') . '" >' . esc_html__('Go to my dashboard', 'tourmaster') . '</a>';
}else{
$ret .= '<a class="tourmaster-payment-complete-button tourmaster-button" href="' . esc_url(home_url("/")) . '" >' . esc_html__('Go to homepage', 'tourmaster') . '</a>';
}
$bottom_text = tourmaster_get_option('general', 'payment-complete-bottom-text', '');
if( !empty($bottom_text) ){
$ret .= '<div class="tourmaster-payment-complete-bottom-text" >';
$ret .= tourmaster_content_filter($bottom_text);
$ret .= '</div>';
}
$ret .= '</div>'; // tourmaster-payment-complete-content-wrap
$ret .= '</div>'; // tourmaster-payment-complete-wrap
return $ret;
}
}