Is there anyway to work paypal with formit? I have a form that takes details in for a short film competition (name, address. telephone, email, short film name, short film length, link/mp3, summary) and sends it to an email address. It is working sending to the email but I also want to add the pay with paypal. I want it to send the details of the form to an email when I've paid through PayPal. Do I just link the form button for paypal with my formit form?
My Form Code:
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`myEmailChunkShortFilm`
&emailTo=`
[email protected]`
&emailSubject=`subject here`
&redirectTo=`186`
&validate=`name:required,
address:required,
telephone:required,
email:email:required,
nameFilm:required,
nameProducer:required,
dateFilm:required,
durationFilm:required,
linkFilm:required,
summaryFilm:required`
]]
<form action="[[~[[*id]]]]" method="post" class="form" class="crew-contact-form">
<input type="hidden" name="nospam:blank" value="[[+fi.nospam]]" />
<div class="col-lg-6 col-sm-6 pad-top-6">
<p>Sonraí an Iarrthóra</p>
<label for="name"><span class="error">[[!+fi.error.name:notempty=`Tá d'ainm ag teastáil`]]</span></label>
<input type="text" name="name" placeholder="Ainm" class="form-control input-box" id="name" value="[[!+fi.name]]">
<label for="address"><span class="error">[[!+fi.error.address:notempty=`Tá do sheoladh ag teastáil`]]</span></label>
<input type="text" name="address" placeholder="Seoladh" class="form-control input-box" id="address" value="[[!+fi.address]]">
<label for="telephone"><span class="error">[[!+fi.error.telephone:notempty=`Tá d'uimhir guthán ag teastáil`]]</span></label>
<input type="tel" name="telephone" placeholder="Teileafón" class="form-control input-box" id="telephone" value="[[!+fi.telephone]]">
<label for="email"><span class="error">[[!+fi.error.email:notempty=`Tá do ríomhphost ag teastáil`]]</span></label>
<input type="email" name="email" placeholder="Ríomhphost" class="form-control input-box" id="email" value="[[!+fi.email]]">
</div>
<div class="col-lg-6 col-sm-6 pad-top-6-6">
<p>Iarratais</p>
<label for="nameFilm"><span class="error">[[!+fi.error.nameFilm:notempty=`Tá ainm an ghearrscannáin ag teastáil`]]</span></label>
<input type="text" name="nameFilm" placeholder="Ainm an Ghearrscannáin" class="form-control input-box" id="nameFilm" value="[[!+fi.nameFilm]]">
<label for="nameProducer"><span class="error">[[!+fi.error.nameProducer:notempty=`Tá ainm an léiritheora ag teastáil`]]</span></label>
<input type="text" name="nameProducer" placeholder="Ainm an Léiritheora" class="form-control input-box" id="nameProducer" value="[[!+fi.nameProducer]]">
<label for="dateFilm"><span class="error">[[!+fi.error.dateFilm:notempty=`Tá dáta críochnúil an tsaothair ag teastáil`]]</span></label>
<input type="text" name="dateFilm" placeholder="Dáta críochnaithe an tsaothair" class="form-control input-box" id="dateFilm" value="[[!+fi.dateFilm]]">
<label for="durationFilm"><span class="error">[[!+fi.error.durationFilm:notempty=`Tá fad an ghearrscnnáin ag teastáil`]]</span></label>
<input type="text" name="durationFilm" placeholder="Fad an Ghearrscnnáin" class="form-control input-box" id="durationFilm" value="[[!+fi.durationFilm]]">
<label for="linkFilm"><span class="error">[[!+fi.error.linkFilm:notempty=`Tá nasc ag teastáil`]]</span></label>
<input type="text" name="linkFilm" placeholder="Nasc an Ghearrscnnáin: YouTube/Vimeo" class="form-control input-box" id="linkFilm" value="[[!+fi.linkFilm]]">
<label for="summaryFilm"><span class="error">[[!+fi.error.summaryFilm:notempty=`Tá d'eolais ag teastáil`]]</span></label>
<textarea name="summaryFilm" placeholder="Tabhair achoimre nach rachaidh thar 200 focal ar an saothar" class="form-control textarea-box" id="summaryFilm" value="[[!+fi.summaryFilm]]" >[[!+fi.summaryFilm]]</textarea>
</div>
<div class="clear"></div>
<div class="col-lg-12 col-sm-12 pad-top-6">
<button class="btn btn-primary custom-button main-btn" type="submit">Seol an Fhoirm</button>
</div>
</form>