/

CM MicroPayments (CMMP) - Shortcodes - Overview


CM MicroPayments Shortcodes

Back to User Guides

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

There are many possibilities, so we have grouped the shortcodes into groups:

  1. Wallet Management Shortcodes
  2. Transfer and Payment Shortcodes
  3. Checkout Shortcodes
  4. Discount Shortcodes

1) Wallet Management Shortcodes

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. You can choose to hide the button by enabling the option  "Hide button after wallet creation".

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

Show Wallet History

Shortcode[cm_user_wallet]

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

Check Wallet by ID

Shortcode[cm_check_wallet]

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

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.


2) Transfer and Payment Shortcodes

Show "Purchase More Points" Link

Shortcode[cm_micropayment_buy_more_link]

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

Transfer 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

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.

Stripe Exchange form

Shortcode: [cm_micropayment_points_to_stripe]

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


3) Checkout Shortcodes

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 Wallet Balance 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.


4) Discount Shortcodes

Show Discounts

Shortcode:  [cm_micropayment_points_discounts]

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

Exchange Points to Discounts

Shortcode: [cm_micropayment_points_to_discount]

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



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