Skip to content

Instantly share code, notes, and snippets.

@osc2nuke
osc2nuke / gist:470a17ba98b131f6ecf30064962868d5
Created August 13, 2018 13:49 — forked from lfender6445/gist:6226290
restrict googleplaces by United States so it only returns zipcodes and states
// Application Javascript - see https://github.com/lfender6445/google_places for full example
var autocomplete, input, address = {};
$(document).ready(function(){
input = $("#searchBox");
$("#searchBox").clearOnFocus();
$('form').submit(function(){ return false; });
});
var init = function(){
<?php
/*
$Id: $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/style.css"></link>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>Stripe API Pay Page</title>
</head>
function getSubmitCardDetailsJavascript() {
$stripe_publishable_key = MODULE_PAYMENT_STRIPE_PUBLISHABLE_KEY;
$js = <<<EOD
<script src="https://js.stripe.com/v2/"></script>
<script>
$(function() {
Stripe.setPublishableKey('{$stripe_publishable_key}');
$('form[name="checkout_confirmation"]').attr('id', 'payment-form');