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
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.
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
Description: Shows on the success page how many points the wallet has after completing a successful checkout.
Show wallet name after checkout
Description: Shows on success page name of charged wallet.
Show wallet data by form
Description: Shortcode shows a form, where user enters the wallet id/name, and displays wallet info.
Show wallet history
Description: If user is logged in, shows latest transactions on wallet.
Show user balance
Description: Show how many points logged-in user have on his wallet.
Show user balance value
Description: Show how many the points logged user have on his wallet are worth.
Exchange points to discounts
Description: Allows users to exchange their MicroPayment Points to Easy Digital Downloads discount codes.
Description: Displays the list of the discount codes generated with the cm_micropayment_points_to_discount.
Show purchase more points link
Description: Displays the link to the page allowing to buy more points (checkout).
Show PayPal Payout exchange form
Description: Displays the form allowing to exchange the points to money using PayPal Payout system.