CM MicroPayments (CMMP) - Shortcodes - Overview

CM MicroPayments Shortcodes

This page contains a list of the shortcodes you can use in the CM MicroPayment plugin.

Create wallet button

Shortcode: [create_wallet_button]

Description: Shows the button which – once clicked – creates a new wallet id to display the wallet. This action is done with an AJAX request so it doesn’t reload the page. On success, the wallet Id will be displayed and (based on admin configuration) this button can be hidden to avoid the generation of unwanted subsequent wallets.

Below: After the "Create Wallet" button has been clicked, the wallet ID is displayed. User should save or remember their wallet ID and use it when asked.

Checkout page

Shortcode: [cm_micropayment_checkout]

Description: The shortcode allows to display the form allowing to buy the defined points sets using the built in PayPal Gateway. If the Easy Digital Downloads integration is enabled, the items will be added to EDD cart.

Below: Option to buy 25 points for 5USD. After clicking on the "Send" button the payment process starts. 

Show how many points the wallet has after checkout

Shortcode: [get_transaction_wallet_points]

Description: Shows on the success page how many points the wallet has after completing a successful checkout.

Show wallet name after checkout

Shortcode: [get_transaction_wallet]

Description: Shows on success page name of charged wallet.

Show wallet data by form

Shortcode: [cm_check_wallet]

Description: Shortcode shows a form, where user enters the wallet id/name, and displays wallet info.

Show wallet history

Shortcode: [cm_user_wallet]

Description: If user is logged in, shows latest transactions on wallet.

Show user balance

Shortcode: [cm_user_balance]

Description: Show how many points logged-in user have on his wallet.

Show user balance value

Shortcode: [cm_user_balance_value]

Description: Show how many the points logged user have on his wallet are worth.

Exchange points to discounts

Shortcode: [cm_micropayment_points_to_discount]

Description: Allows users to exchange their MicroPayment Points to Easy Digital Downloads discount codes.

Show discounts

Shortcode: [cm_micropayment_points_discounts]

Description: Displays the list of the discount codes generated with the cm_micropayment_points_to_discount.

Show purchase more points link

Shortcode: [cm_micropayment_buy_more_link]

Description: Displays the link to the page allowing to buy more points (checkout).

Show PayPal Payout exchange form

Shortcode: [cm_micropayment_points_to_paypal]

Description: Displays the form allowing to exchange the points to money using PayPal Payout system.

Transfering Points Between Users

Shortcode: [transfer_wallet_points]

Description: Shows the form which allows to make a transfer of points from your own wallet to the other wallet with the known ID. Of course only the amount of points lower or equal to the amount of points available on the wallet can be sent.

For more information, read the guide CM MicroPayments (CMMP) - Transfer Points Between Users

More information about the CM MicroPayments WordPress  Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center