mycred_paymentwall

Codex / mycred/purchase / Shortcodes / mycred_paymentwall

Description

This shortcode renders the Paymentwall widget you have set to use with the buyCRED add-on.

Requires the buyCRED add-on to be enabled along with the buyCRED Paymentwall Gateway add-on being installed and enabled.

Available since version 1.0

Shortcode Attributes

Attribute Type Required Default Description
width int No 730 The width (in pixels) of the IFRAME.
height int No 500 The height (in pixels) of the IFRAME.
buyer_id int No - Option to set who gets the points completing offers via this shortcode. Accepts either a user ID or the string "current".
widget_id string No - Option to display a different widget from the one you set in your Payment Gateway settings. Should not be used unless you must use a different widget ID.
type string No MYCRED_DEFAULT_TYPE_KEY The point type to payout. Should not be used if you only have one point type installed.

CSS Styling

This shortcode renders an IFRAME that is created by the Paymentwall API.

Examples

Example 1: Default usage.

[mycred_paymentwall]

Example 2: Show a different widget then what we saved in our gateways settings.

[mycred_paymentwall widget_id="ABC123"]

Last edited June 23, 2016