Difference between revisions of "Template:Payment form"

From cm2.liecourt.com
(Fill database)
 
(Fill database)
Line 27: Line 27:
 
</noinclude><includeonly>{{#vardefine:@cols|4-8}}<!--
 
</noinclude><includeonly>{{#vardefine:@cols|4-8}}<!--
  
--><wsform action="get" loadscript="disableSubmitButtonOnSubmit" formtarget="{{localurl:Special:PayTrace}}" >
+
--><h1>Please fill in your payment information</h1><wsform action="get" loadscript="disableSubmitButtonOnSubmit" formtarget="{{localurl:Special:PayTrace}}" >
 
<wsfield name="transactions" id="{{{Type|}}}-transactions" value="{{{Transactions|}}}" type="hidden"></wsfield>{{#if: {{{Billing name|}}} |  
 
<wsfield name="transactions" id="{{{Type|}}}-transactions" value="{{{Transactions|}}}" type="hidden"></wsfield>{{#if: {{{Billing name|}}} |  
 
{{Item responsive |Cols={{#var:@cols}} |1=Client name |2=<wsfield name="billing_address_name" id="{{{Type|}}}-billing-name" value="{{{Billing name|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing name|}}} }} }}
 
{{Item responsive |Cols={{#var:@cols}} |1=Client name |2=<wsfield name="billing_address_name" id="{{{Type|}}}-billing-name" value="{{{Billing name|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing name|}}} }} }}
{{Item responsive |Cols={{#var:@cols}} |1=Price |2=<wsfield name="amount" id="{{{Type|}}}-price" value="{{{Price|}}}" type="text" class="form-control" required="required"></wsfield> }}
+
{{Item responsive |Cols={{#var:@cols}} |1=Price |2=<wsfield name="amount" id="{{{Type|}}}-price" value="{{{Price|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Price|}}} }}
{{Item responsive |Cols={{#var:@cols}} |1=Description |2=<wsfield name="description" id="{{{Type|}}}-description" type="textarea" class="form-control" required="required" maxlength="255">{{{Description|}}}</wsfield> }}
+
{{Item responsive |Cols={{#var:@cols}} |1=Description |2=<wsfield name="description" id="{{{Type|}}}-description" type="hidden" class="form-control" required="required" value="{{{Description|}}}" />{{{Description|}}} }}
{{Item responsive |Cols={{#var:@cols}} |1=Invoice nr |2=<wsfield name="invoice_id" id="{{{Type|}}}-invoice-id" value="{{{Invoice id|}}}" type="text" class="form-control" required="required"></wsfield> }}{{#if: {{{Billing address|}}} |  
+
{{Item responsive |Cols={{#var:@cols}} |1=Invoice nr |2=<wsfield name="invoice_id" id="{{{Type|}}}-invoice-id" value="{{{Invoice id|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Invoice id|}}} }}{{#if: {{{Billing address|}}} |  
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing address street |2=<wsfield name="billing_address_street_address" id="{{{Type|}}}-billing-address" value="{{{Billing address|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing address|}}} }} }}{{#if: {{{Billing email|}}} |  
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing address street |2=<wsfield name="billing_address_street_address" id="{{{Type|}}}-billing-address" value="{{{Billing address|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing address|}}} }} }}{{#if: {{{Billing email|}}} |  
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing email |2=<wsfield name="email" id="{{{Type|}}}-billing-email" value="{{{Billing email|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing email|}}} }} }}{{#if: {{{Billing address 2|}}} |  
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing email |2=<wsfield name="email" id="{{{Type|}}}-billing-email" value="{{{Billing email|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing email|}}} }} }}{{#if: {{{Billing address 2|}}} |  
Line 58: Line 58:
  
 
--><div class="text-right">
 
--><div class="text-right">
<wsfield type="submit" id="makepayment" class="btn btn-primary btn-block" value="Submit {{{Type|}}}-payment"/>
+
<wsfield type="submit" id="makepayment" class="btn btn-primary btn-block" value="Submit payment"/>
 
</div>
 
</div>
 
</wsform></includeonly>
 
</wsform></includeonly>

Revision as of 09:16, 14 May 2020


This is the Payment form template. It should be called in the following format:

{{Payment form
|Type=
|Invoice id=
|Description=
|Billing name=
|Billing email=
|Price=
|Billing address=
|Billing address 2=
|Billing city=
|Billing state=
|Billing zip=
|Billing country=
|Paytrace validated customer id=
}}