How to use the payment.po function in payment

To help you get started, we’ve selected a few payment examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CommerceRack / anycommerce / extensions / checkout_passive.js View on Github external
o = "<li><label for="payment-cc">Credit Card #&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCard" id="payment-cc" name="payment.cc" size="20" type="text">&lt;\/li&gt;";
							o += "</label></li><li><label>Expiration&lt;\/label&gt;<select class="creditCardMonthExp" id="payment-mm" name="payment.mm"><option>&lt;\/option&gt;";
							o += myControl.util.getCCExpMonths(myControl.data.cartItemsList.cart['payment.mm']);
							o += "&lt;\/select&gt;";
							o += "</option></select><option value="">&lt;\/option&gt;"+myControl.util.getCCExpYears(myControl.data.cartItemsList.cart['payment.yy'])+"&lt;\/select&gt;&lt;\/li&gt;";
							o += "</option></label></li><li><label for="payment.cv">CVV/CID&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCardCVV" id="payment-cv" name="payment.cv" size="8" type="text"> <span class="ui-icon ui-icon-help"></span>&lt;\/li&gt;";
							break;
	
						case 'PO':
							o = "</label></li><li><label for="payment-po">PO #&lt;\/label&gt;<input low="" is="" in="" value="&quot;;
							if(myControl.data.cartItemsList.cart[" class="purchaseOrder" id="payment-po" name="payment.po" size="2" type="text">"+myControl.ext.convertSessionToOrder.vars.echeck[key]+"&lt;\/label&gt;<input value="&quot;;
								if(myControl.data.cartItemsList.cart[key])
									o += myControl.data.cartItemsList.cart[key];
								o += &quot;" class="echeck" id="&quot;+safeid+&quot;" name="&quot;+key+&quot;" size="2" type="text">&lt;\/li&gt;";
								}
							break;
						default:
//no supplemental material is present. hide it so no styling shows up. add bottom corners to payment method for consistency (with shipping). corners added on supplemental, when present.
							$('#payby_'+paymentID+' .paycon').addClass('ui-corner-bottom');</label></li>
github CommerceRack / anycommerce / extensions / checkout_passive.js View on Github external
case 'CREDIT':
							o = "<li><label for="payment-cc">Credit Card #&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCard" id="payment-cc" name="payment.cc" size="20" type="text">&lt;\/li&gt;";
							o += "</label></li><li><label>Expiration&lt;\/label&gt;<select class="creditCardMonthExp" id="payment-mm" name="payment.mm"><option>&lt;\/option&gt;";
							o += myControl.util.getCCExpMonths(myControl.data.cartItemsList.cart['payment.mm']);
							o += "&lt;\/select&gt;";
							o += "</option></select><option value="">&lt;\/option&gt;"+myControl.util.getCCExpYears(myControl.data.cartItemsList.cart['payment.yy'])+"&lt;\/select&gt;&lt;\/li&gt;";
							o += "</option></label></li><li><label for="payment.cv">CVV/CID&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCardCVV" id="payment-cv" name="payment.cv" size="8" type="text"> <span class="ui-icon ui-icon-help"></span>&lt;\/li&gt;";
							break;
	
						case 'PO':
							o = "</label></li><li><label for="payment-po">PO #&lt;\/label&gt;<input low="" is="" in="" value="&quot;;
							if(myControl.data.cartItemsList.cart[" class="purchaseOrder" id="payment-po" name="payment.po" size="2" type="text">"+myControl.ext.convertSessionToOrder.vars.echeck[key]+"&lt;\/label&gt;<input value="&quot;;
								if(myControl.data.cartItemsList.cart[key])
									o += myControl.data.cartItemsList.cart[key];
								o += &quot;" class="echeck" id="&quot;+safeid+&quot;" name="&quot;+key+&quot;" size="2" type="text">&lt;\/li&gt;";
								}
							break;
						default:
//no supplemental material is present. hide it so no styling shows up. add bottom corners to payment method for consistency (with shipping). corners added on supplemental, when present.</label></li>
github CommerceRack / anycommerce / extensions / checkout_nice.js View on Github external
o = "<li><label for="payment-cc">Credit Card #&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCard" id="payment-cc" name="payment.cc" size="20" type="text">&lt;\/li&gt;";
							o += "</label></li><li><label>Expiration&lt;\/label&gt;<select class="creditCardMonthExp" id="payment-mm" name="payment.mm"><option>&lt;\/option&gt;";
							o += myControl.util.getCCExpMonths(myControl.data.cartItemsList.cart['payment.mm']);
							o += "&lt;\/select&gt;";
							o += "</option></select><option value="">&lt;\/option&gt;"+myControl.util.getCCExpYears(myControl.data.cartItemsList.cart['payment.yy'])+"&lt;\/select&gt;&lt;\/li&gt;";
							o += "</option></label></li><li><label for="payment.cv">CVV/CID&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCardCVV" id="payment-cv" name="payment.cv" size="8" type="text"> <span class="ui-icon ui-icon-help"></span>&lt;\/li&gt;";
							break;
	
						case 'PO':
							o = "</label></li><li><label for="payment-po">PO #&lt;\/label&gt;<input low="" is="" in="" value="&quot;;
							if(myControl.data.cartItemsList.cart[" class="purchaseOrder" id="payment-po" name="payment.po" size="2" type="text">"+myControl.ext.convertSessionToOrder.vars.echeck[key]+"&lt;\/label&gt;<input value="&quot;;
								if(myControl.data.cartItemsList.cart[key])
									o += myControl.data.cartItemsList.cart[key];
								o += &quot;" class="echeck" id="&quot;+safeid+&quot;" name="&quot;+key+&quot;" size="2" type="text">&lt;\/li&gt;";
								}
							break;
						default:
//no supplemental material is present. hide it so no styling shows up. add bottom corners to payment method for consistency (with shipping). corners added on supplemental, when present.
							$('#payby_'+paymentID+' .paycon').addClass('ui-corner-bottom');</label></li>
github CommerceRack / anycommerce / extensions / checkout_nice.js View on Github external
case 'CREDIT':
							o = "<li><label for="payment-cc">Credit Card #&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCard" id="payment-cc" name="payment.cc" size="20" type="text">&lt;\/li&gt;";
							o += "</label></li><li><label>Expiration&lt;\/label&gt;<select class="creditCardMonthExp" id="payment-mm" name="payment.mm"><option>&lt;\/option&gt;";
							o += myControl.util.getCCExpMonths(myControl.data.cartItemsList.cart['payment.mm']);
							o += "&lt;\/select&gt;";
							o += "</option></select><option value="">&lt;\/option&gt;"+myControl.util.getCCExpYears(myControl.data.cartItemsList.cart['payment.yy'])+"&lt;\/select&gt;&lt;\/li&gt;";
							o += "</option></label></li><li><label for="payment.cv">CVV/CID&lt;\/label&gt;<input value="&quot;;
							if(myControl.ext.convertSessionToOrder.vars[" class="creditCardCVV" id="payment-cv" name="payment.cv" size="8" type="text"> <span class="ui-icon ui-icon-help"></span>&lt;\/li&gt;";
							break;
	
						case 'PO':
							o = "</label></li><li><label for="payment-po">PO #&lt;\/label&gt;<input low="" is="" in="" value="&quot;;
							if(myControl.data.cartItemsList.cart[" class="purchaseOrder" id="payment-po" name="payment.po" size="2" type="text">"+myControl.ext.convertSessionToOrder.vars.echeck[key]+"&lt;\/label&gt;<input value="&quot;;
								if(myControl.data.cartItemsList.cart[key])
									o += myControl.data.cartItemsList.cart[key];
								o += &quot;" class="echeck" id="&quot;+safeid+&quot;" name="&quot;+key+&quot;" size="2" type="text">&lt;\/li&gt;";
								}
							break;
						default:
//no supplemental material is present. hide it so no styling shows up. add bottom corners to payment method for consistency (with shipping). corners added on supplemental, when present.</label></li>

payment

A general purpose library for building credit card forms, validating inputs and formatting numbers. Base on jquery.payment by @stripe, but without the jQuery.

MIT
Latest version published 5 months ago

Package Health Score

71 / 100
Full package analysis