예제 #1
0
        _e('Total Amount:', 'colabsthemes');
        ?>
</span><?php 
        echo esc_html(colabs_get_price($order['item_amount']));
        ?>
</li>
    </ul>

    <h4><?php 
        _e('Bank Transfer Instructions', 'colabsthemes');
        ?>
</h4>

    <p><?php 
        echo stripslashes(colabsthemes_nl2br(get_option('colabs_bank_instructions')));
        ?>
</p>

    <p><?php 
        _e('For questions or problems, please contact us directly at', 'colabsthemes');
        ?>
 <?php 
        echo get_option('admin_email');
        ?>
</p> 
    
    <?php 
    }
}
colabs_register_gateway('Colabs_Bank_Transfer_Gateway');
예제 #2
0
        ?>
</h4>

    <ul>
      <li><span><?php 
        _e('Transaction ID:', 'colabsthemes');
        ?>
</span><?php 
        echo esc_html($order['order_id']);
        ?>
</li>
      <li><span><?php 
        _e('Reference #:', 'colabsthemes');
        ?>
</span><?php 
        echo esc_attr($order['post_id']);
        ?>
</li>
      <li><span><?php 
        _e('Total Amount:', 'colabsthemes');
        ?>
</span><?php 
        echo colabs_get_price($order['item_amount']);
        ?>
</li>
    </ul>
    <?php 
    }
}
colabs_register_gateway('Colabs_AuthorizeNet_AIM_Gateway');
예제 #3
0
                    case 'Reversed':
                        $note = __('Last transaction has been reversed. Reason: Payment has been reversed (charge back)', 'colabsthemes');
                        $paypal['note'] = $note;
                        $order->failed($paypal);
                        break;
                    case 'Denied':
                        $note = __('Last transaction has been reversed. Reason: Payment Denied', 'colabsthemes');
                        $paypal['note'] = $note;
                        $order->failed($paypal);
                        break;
                    case 'In-Progress':
                    case 'Pending':
                        $pending_str = array('address' => __('Customer did not include a confirmed shipping address', 'colabsthemes'), 'authorization' => __('Funds not captured yet', 'colabsthemes'), 'echeck' => __('eCheck that has not cleared yet', 'colabsthemes'), 'intl' => __('Payment waiting for approval by service provider', 'colabsthemes'), 'multi-currency' => __('Payment waiting for service provider to handle multi-currency process', 'colabsthemes'), 'unilateral' => __('Customer did not register or confirm his/her email yet', 'colabsthemes'), 'upgrade' => __('Waiting for service provider to upgrade the PayPal account', 'colabsthemes'), 'verify' => __('Waiting for service provider to verify his/her PayPal account', 'colabsthemes'), 'paymentreview' => __('Paypal is currently reviewing the payment and will approve or reject within 24 hours', 'colabsthemes'), '*' => '');
                        $reason = @$_POST['pending_reason'];
                        $note = __('Last transaction is pending. Reason: ', 'colabsthemes') . (isset($pending_str[$reason]) ? $pending_str[$reason] : $pending_str['*']);
                        $paypal['note'] = $note;
                        $order->pending($paypal);
                        break;
                    default:
                }
            }
        }
    }
    function is_recurring()
    {
        $options = Colabs_Gateway_Registry::get_gateway_options('paypal');
        return !empty($options['business_account']);
    }
}
colabs_register_gateway('Colabs_Paypal_Gateway');