WPDeposit

The WPdeposit plugin will help you run a monetary system on your wordpress website. For more info visit the product detail page on codecanyon.net.


Quick Startup

Step 1: Activate

Upload the plugin to the plugin folder and activate plugin through the plugin admin panel.

Thumbnail for activating plugin

Step 2: Configure the payment gateways

Go to wpdeposit -> settings and configure all the required information like company name, address, ...

Thumbnail for Main settings

Under the payment gateway's tab you can add your payment gateway information

Thumbnail for payment gateway

Under the mail templates tab you can configure the mail text that will be send to the user after a successfull or cancelled deposit occurs.

Finally the Money vs points tab will provide settings to use points instead of regular currency.

Step 3: Add payment options

Under the payment options you can add your own money groups which user can select when depositing money on their account

Step4: Create deposit page Since version 1.8.8 the required pages will be created on plugin activation.

[ ] Shortcodes

Display the payment interface

[wpdeposit_payment_interface]

Display the user balance

[wpdeposit_deposit_balance]

Display the deposit history

[wpdeposit_deposit_history]

Show a user his transactions

[wpdeposit_transactions]

Show donation page

[wpdeposit_donate_to_user]

Withrawal page for users

[wpdeposit_withdrawals]

Widgets

Display the user balance.

Thumbnail for activating widget

Functions

Call deposit balance function from within your templates

<?php show_deposit_balance(); ?>

To increment a user balance use the following code:

<?php
$userModel = new UserModel();
$userModel->incrementBalance(20); //accepts a second parameter which is the user id. Default: current logged in user id
                    

To decrement a user balance use the following code:

<?php
$userModel = new UserModel();
$userModel->decrementBalance(20); //accepts a second parameter which is the user id. Default: current logged in user id
                    

Check if the user has enough balance:

<?php
$userModel = new UserModel();
if($userModel->canAfford(20)) {
    //do something
};
                    

Action hooks

  • wpds_register_widgets_before
  • wpds_register_widgets_after
  • wpds_save_extra_profile_fields_before
  • wpds_save_extra_profile_fields_after
  • wpds_show_extra_profile_fields_before
    usermodel object is available as parameter
  • wpds_show_extra_profile_fields_after
    usermodel object is available as parameter
  • wpds_load_menu_before
  • wpds_load_menu_after
  • wpds_add_setting_tab_title_before
  • wpds_add_setting_tab_title_after
  • wpds_add_payment_option_before
  • wpds_add_payment_option_after
  • wpds_edit_payment_option_before
  • wpds_edit_payment_option_after
  • wpds_delete_payment_option_before
  • wpds_delete_payment_option_after
  • wpds_show_payment_options_before
  • wpds_show_payment_options_after
  • wpds_check_payment_before
    Tax ID is available as parameter
  • wpds_check_payment_after
    Tax ID is available as parameter
  • wpds_process_payment_before
    Payment info array is available as parameter
  • wpds_process_payment_after
    Payment info array is available as parameter
  • wpds_complete_payment_before
    Payment info array is available as parameter
  • wpds_complete_payment_after
    Payment info array is available as parameter
  • wpds_cancel_payment_before
    Payment info array is available as parameter
  • wpds_cancel_payment_after
    Payment info array is available as parameter
  • wpds_get_deposit_detail_before
    Deposit ID is available as parameter
  • wpds_get_deposit_detail_after
    Deposit details array is available as parameter
  • wpds_get_deposit_history_before
  • wpds_get_deposit_history_after
  • wpds_deposit_failed_mail_before
  • wpds_deposit_failed_mail_after
  • wpds_deposit_success_mail_before
  • wpds_deposit_success_mail_after
  • wpds_mark_deposit_complete_before
  • wpds_mark_deposit_complete_after
  • wpds_mark_deposit_suspend_before
  • wpds_mark_deposit_suspend_after
  • wpds_setting_add_image_before
    Form post fields array is available as parameter
  • wpds_setting_add_image_after
    Form post fields array is available as parameter
  • wpds_load_mail_templates_before
    Template name is available as parameter
  • wpds_load_mail_templates_after
    Template name is available as parameter
  • wpds_donate_to_user_before
  • wpds_donate_to_user_after
  • wpds_log_transaction_before
  • wpds_log_transaction_after
    transaction result array is available as parameter
  • wpds_init_payment_gateways_before
  • wpds_init_payment_gateways_after
  • wpds_get_payment_gateways_before
  • wpds_get_payment_gateways_after
  • wpds_construct_form_fields_before
    form field array is available as parameter
  • wpds_construct_form_fields_after
    form field array is available as parameter
  • wpds_deposit_list_view_before
  • wpds_deposit_list_view_after
  • wpds_donate_to_user_view_before
  • wpds_donate_to_user_view_after
  • wpds_add_setting_tab_content
  • wpds_add_deposit_list_column_title
  • wpds_add_deposit_list_column_content
  • wpds_add_deposit_history_colum_title
  • wpds_add_deposit_history_colum_content
  • wpds_add_frontend_transaction_list_column_title
  • wpds_add_frontend_transaction_list_column_content
  • wpds_add_backend_transaction_list_column_title
  • wpds_add_backend_transaction_list_column_content
  • wpds_forward_gateway_before_before
  • wpds_add_donate_fields
  • wpds_add_settings_fields
  • wpds_update_settings
  • wpds_update_gateway_settings
    Form post fields array is available as parameter
  • wpds_add_mail_templates_fields
  • wpds_update_mail_template_settings
    Form post fields array is available as parameter
  • wpds_add_points_fields
  • wpds_update_points_settings

Bank gateway hooks

  • wpds_bank_payment_process_init
  • wpds_process_pending_bank_payment

Authorize gateway hooks

  • wpds_authorize_payment_process_init
  • wpds_process_authorize_payment
  • wpds_fetch_authorize_deposit_form
  • wpds_process_authorize_failed

Ideal gateway hooks

  • wpds_ideal_payment_process_init
  • wpds_fetch_ideal_deposit_form
  • wpds_ideal_transaction_request
  • wpds_process_ideal_payment
  • wpds_process_ideal_payment_cancelled
  • wpds_process_ideal_payment_failure
  • wpds_process_ideal_payment_expired
  • wpds_process_ideal_payment_open

Paypal gateway hooks

  • wpds_paypal_payment_process_init
  • wpds_fetch_paypal_deposit_form
  • wpds_process_paypal_payment
  • wpds_paypal_payment_invalid
  • wpds_paypal_payment_not_verified

How to use our hooks?

Our hooks works exactly like regular wordpress hooks. Use the add_action() to hook into one of our hooks and specify a function to run.

add_action('wpds_process_payment_after', 'run_stuff_after_payment');

function run_stuff_after_payment($params) {
              print_r($params);
              //run code and use parameters (if available)
            }

Filters

  • wpds_display_deposit_balance
  • wpds_paypal_deposit_form
  • wpds_paypal_form_fields
  • wpds_ideal_deposit_form
  • wpds_ideal_form_fields
  • wpds_authorize_form_fields
  • wpds_bank_form_fields
  • wpdeposit_payment_gateways

Screenshots


WPdeposit add-ons?

More add-ons? visit http://docs.uwebic.com/