Difference between revisions of "Template:Payment form"

From cm2.liecourt.com
(Fill database)
(Fill database)
 
(6 intermediate revisions by 2 users not shown)
Line 30: Line 30:
 
<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="hidden" class="form-control" required="required"></wsfield>{{{Price|}}} }}
+
{{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|}}},- }}
<wsfield name="Quantity"  type="hidden" value="{{{Quantity|}}}" />
+
<wsfield name="quantity"  type="hidden" value="{{{Quantity|}}}" />
 
<wsfield name="User"  type="hidden" value="{{{User|}}}" />
 
<wsfield name="User"  type="hidden" value="{{{User|}}}" />
 
{{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=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="hidden" class="form-control" required="required"></wsfield>{{{Invoice id|}}} }}{{#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|}}} }} }}
 
{{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|}}} }} }}
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing email |2=<wsfield name="email" id="{{{Type|}}}-billing-email" value="{{{Billing email|}}}" type="text" 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="text" class="form-control" required="required"></wsfield>{{{Billing email|}}} }}{{#if: {{{Billing address 2|}}} |  
Line 43: Line 43:
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing country |2=<wsfield name="billing_address_country" id="{{{Type|}}}-billing-country" value="{{{Billing country|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing country|}}} }} }}
 
{{Item responsive |Cols={{#var:@cols}} |1=Billing country |2=<wsfield name="billing_address_country" id="{{{Type|}}}-billing-country" value="{{{Billing country|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Billing country|}}} }} }}
 
{{Item responsive |Cols={{#var:@cols}} |1=Paytrace validated customer id |2=<wsfield name="customer_id" id="{{{Type|}}}-paytrace-validated-customer-id" value="{{{Paytrace validated customer id|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Paytrace validated customer id|}}} }}{{#if: {{{Paytrace validated customer id|}}} ||
 
{{Item responsive |Cols={{#var:@cols}} |1=Paytrace validated customer id |2=<wsfield name="customer_id" id="{{{Type|}}}-paytrace-validated-customer-id" value="{{{Paytrace validated customer id|}}}" type="hidden" class="form-control" required="required"></wsfield>{{{Paytrace validated customer id|}}} }}{{#if: {{{Paytrace validated customer id|}}} ||
{{Item responsive |Cols={{#var:@cols}} |1=Credit card nr |2=<wsfield name="credit_card_number" id="{{{Type|}}}-credit-card-nr" type="text" class="form-control" required="required"></wsfield> }}
+
{{Item responsive |Cols={{#var:@cols}} |1=Credit card nr. |2=<wsfield name="credit_card_number" id="{{{Type|}}}-credit-card-nr" type="number" pattern="[0-9]*" data-inputmask="'mask': '9999 9999 9999 9999'" class="form-control" required="required"></wsfield> }}  
 
{{Item responsive |Cols={{#var:@cols}} |1=Credit card name |2=<wsfield name="CreditCardName" id="{{{Type|}}}-credit-card-name" type="text" class="form-control" required="required"></wsfield> }}
 
{{Item responsive |Cols={{#var:@cols}} |1=Credit card name |2=<wsfield name="CreditCardName" id="{{{Type|}}}-credit-card-name" type="text" class="form-control" required="required"></wsfield> }}
{{Item responsive |Cols={{#var:@cols}} |1=Credit card expirtion |2=<div class="d-flex">{{#Widget:Creditcard select|id=month|{{{Type|}}}-credit-card-expiration-month|name=credit_card_expiration_month|placeholder=MM|options=<option value="01">
+
{{Item responsive |Cols={{#var:@cols}} |1=Credit card expiration |2=<div class="d-flex">{{#Widget:Creditcard select|id=month|{{{Type|}}}-credit-card-expiration-month|name=credit_card_expiration_month|placeholder=MM|options=<option value="01">
 
     <option value="02">
 
     <option value="02">
 
     <option value="03">
 
     <option value="03">
Line 62: Line 62:
 
  | <option value="{{#expr:{{#time:y|now}} + {{#var: i }} }}">{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
 
  | <option value="{{#expr:{{#time:y|now}} + {{#var: i }} }}">{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
 
}}}}</div> }}
 
}}}}</div> }}
{{Item responsive |Cols={{#var:@cols}} |1=Credit card csc |2=<wsfield name="csc" placeholder="XXX" id="{{{Type|}}}-credit-card-csc" type="text" class="form-control" required="required"></wsfield> }}
+
{{Item responsive |Cols={{#var:@cols}} |1=Credit card CSC |2=<wsfield name="csc" placeholder="XXX" id="{{{Type|}}}-credit-card-csc" type="text" class="form-control" required="required"></wsfield> }}
 
}}<!--
 
}}<!--
  
Line 77: Line 77:
 
<wsfield type="submit" id="makepayment" class="btn btn-green float-right" value="Submit payment"/>
 
<wsfield type="submit" id="makepayment" class="btn btn-green float-right" value="Submit payment"/>
 
</div>
 
</div>
</wsform></includeonly>
+
</wsform>{{#if: {{{Paytrace validated customer id|}}}|<wsform action="addToWiki"><!--
 +
-->{{#tag:wsedit||target={{PAGEID}}|template=Order|formfield=Paytrace validated customer id|value=}}<!--
 +
--><wsfield type="submit" class="btn btn-green float-left" value="Change credit-card"/></wsform>}}</includeonly>

Latest revision as of 13:29, 7 December 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=
}}