An add-on for Contact Form 7 to connect to Mollie.
Add-on plugin for Contact Form 7 – adds three fields and a shortcode.
Add a (hidden) field: [text paymentdescription “Payment for This is my description”]
The amount which needs to be payed.
Does accept shortcodes without brackets like so:
[amount* amount-734 “CF7_GET key=’Amount'”]
Optional field so that the user can select from available payment options.
This field is filled automatically with all payment options from Mollie.
You can also add extra options like “cash”.
If this field is not present, people have to select the payment option on the mollie website.
If there is only one payment option available this will be automatically selected.
There are three Payment options types:
The type is “oneoff”, ment for payment that occur once
This list all availbale payment options for recurring payments
This lists all available payment options to do the first payment of a recurring payment.
This initial payment is needed to confirm the recurring payment.
If you want to do recurring payment and you have only one recurring payment option available, you can skip this the recurring field.
Only an Initial payment field is enough.
If payment option iDeal is chosen, this field can be used to select the bank (issuer).
You can optionally add a field with name “frequency” to use with the recurring payment to set the payment frequency in months.
You can optionall add a date field with the name “chargedate” to use with the recurring payment to set the first chargedate.
[payment_result]
This shortcode can be used on a custom redirect page or on the form page itself.
The shortcode can have a shortcode nested within it.
It accepts two arguments, both can include layout and pictures:
succes — the succes message to be displayed
fail — the failure message to be displayed
On succes only the success message will be displayed.
In all other cases the nested content will be displayed.
You can include shortcodes just use $l for [ and $r for ]
Shortcode can thus be used like this:
[payment_result success = “Uw donatie is succesvol ontvangen. Hartelijk dank daarvoor! $lSome shortcode$r” fail = “Uw donatie is mislukt, probeert u het alstublieft opnieuw.”]
[payment_result success = "Your payment was successful." fail = "Payment failed, try again."] Fill in the form below to pay. [contact-form-7 id="211" title="Paymentform"] Thank you. [/payment_result]
In this case the contact form with id 211 will not be shown on successful payment, only the success message will.
All arguments are optional, you can also use the shortcode like this: [payment_result].
In that case the default messages will be:
‘Payment was successful, thank you.’
‘Payment failed, please try again.’
The short code [paymentstable] gives an oveview of all payments made.
It accepts the parameters: hide, header, paymenttype and columns
hide difines the columns no to shown
header changes the title
paymenttype define whether to show only subscriptions (paymenttype=”subscription”) or only one time payments (paymenttype=”onetime”)
columns defines custom column names.
status=”paid” only shows payments with the status paid
search = “!Description=’Some decription'” shows all payments excluding the one with “Some decription” as description
search = “Description=’Some decription'” shows all payments with “Some decription” as description
example:
[paymentstable} hide=”Time,OrderID,CustomerID,Times,PaymentID, Status,SubscriptionID” header=Custom table title” columns=”ID,Naam,E-mail,Bedrag, Omschrijving,Frequentie,Start datum, Mogelijke acties” status=”paid” search=”!Description=’Some description'”]
Create a Mollie account, and paste the api into the side-wide api key field under “Mollie”, or use it on the form specific settings tab.
Optionally define a redirect page.
[hidden paymentdescription "Payment for some description"] [submission_id_hidden orderid] <label> Donation amount [amount* amount-185 min:5]</label> <label> Payment method [paymentchoice paymentmethod-901 paymenttype:oneoff]</label> <label> Your bank brand [bankchoice bankchoice-22]</label>
[hidden paymentdescription "Payment for some description"] <label> Donation amount [amount* amount-185 min:5]</label> <label> Payment method [paymentchoice paymentmethod-14 paymenttype:recurring]</label> <label> Payment method for first payment [paymentchoice paymentmethod-15 paymenttype:first]</label> <label> Your bank brand [bankchoice bankchoice-22]</label> <label> How often do you want to pay [select frequency "1" "3" "6" "12"] months</label> <label> When do you want to be charged for the first time? [date chargedate]</label>
[hidden paymentdescription "Payment for some description"] <label> Donation amount [amount* amount-185 min:5]</label> <label> Payment method for first payment [paymentchoice paymentmethod-15 paymenttype:first]</label>
Installing Mollie for Contact Form 7 can be done either by searching for “Mollie for Contact Form 7” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:
Payments are already stored in the Mollie system, this is just a payment plugin, so no other options are included.