WPdirectdebit comes with a number of shortcodes to help you display information on pages you create. If you are unfamiliar with shortcodes in WordPress, you can read up on them here.
[wpdirectdebit-exchange]
Function:
Convert an amount from one currency into another.
You could use this to display the price of an item in a different currency at the prevailing exchange rate. (The price that actually gets charged may be slightly different so this is only to be used as a guide.) Use it multiple times to construct a pricing table.
Arguments:
amount: The amount to convert in whole currency units. The currency of the amount is the default currency set in the Gravity Forms settings.
Default value: “1”
currency: The currency to convert the amount into, expressed as a 3-character code. Valid values are:
‘USD’ => U.S. dollars
‘SEK’ => Swedish Krona
‘GBP’ => UK Pound Sterling
‘AUD’ => Australian dollars
‘NZD’ => New Zealand dollars
‘DKK’ => Danish Krone
‘CAD’ => Canadian dollars
‘EUR’ => Euros
Default value: The default value set in Gravity Forms settings.
Example: Convert £9.99 to Euros.
Here’s what you might write:
Price: £9.99 (Price in Euros: €[wpdirectdebit-exchange amount="9.99" currency="EUR"])
Here’s how it displays:
Price: £9.99 (Price in Euros: €11.93)
[wpdirectdebit-show-account]
Function: Display the account details of the current user.
Use this to display the logged-in user’s account details and a list of mandates, single payments, recurring payments and payment schedules. If the user is not logged in, an error message is displayed prompting the user to log in.
Arguments:
user-details
customer-details
bank-details
mandate
recurring
single-payments
schedule
Argument values:
Each argument can be either “hide” or “show”.
Defaults:
All arguments default to “hide”.
Example: Display the logged in user’s details, mandates, bank details and single payments.
Here’s what you might write:
[wpdirectdebit-show-account user-details="show" mandate-details = "show" customer-details="show" bank-details="show" single-payments="show"])
[wpdirectdebit-payments-schedule]
Function: Display the payment schedule of the recurring payment created by the entry.
Use this to display a list of upcoming payments for the recurring payment set up after the given entry was submitted.
Arguments:
entry: The entry ID of the submitted recurring payment application
notification: Values are “yes” or “no”. Default is “no”. Set to “yes” to change the format of the table for use in notification emails.
Example 1:
[wpdirectdebit-payments-schedule entry="191"]
Example 2:
You can insert a payment schedule into a notification email by using the entry ID merge tag {entry:id} like this:
[wpdirectdebit-payments-schedule notification="yes" entry="{entry:id}"]