title | layout | permalink | send_to_address | support_address | description |
---|---|---|---|---|---|
Store |
page |
/store/ |
access-request@security-assignments.com |
support@security-assignments.com |
This page is the storefront for security-assignments.com. |
<p>To gain access to the lab virtual machines, do the following:</p>
<ol>
<li># for an account on GCP using an @gmail.com address.*</li>
<li>Enter your GCP <strong>@gmail.com</strong> address on this page, and click
"Continue."</li>
<li>Submit payment for the <strong>lab virtual machine
access package</strong>.</li>
<li>Within a few minutes, you should receive
notification to your gcp email address (not your paypal email address) that the gcp email address has been added to the
<strong>image-user@security-assignments.com</strong> group, giving it
access to the lab virtual machines.</li>
</ol>
<p>If you later want to change your GCP email associated with your purchase, <a href="mailto:{{ page.support_address }}">{{ page.support_address }}</a>
Non-transferrable to different persons -- just transferrable within google accounts that belong to you.</p>
<hr/>
<p>* If you have a non-@gmail.com email address that you are certain will work on GCP, contact <a href="mailto:{{ page.send_to_address }}">{{ page.send_to_address }}</a>.</p>
</div>
<div class="col-sm">
<form id='email-continue' class='needs-validation mb-3 pb-3 border-bottom' novalidate>
<div class="form-group">
<label for="gcp-email">GCP Email address</label>
<input
type="email"
required
class="form-control"
id="gcp-email"
placeholder="example@gmail.com"
pattern=".+@(gmail|example)\.com">
<small id="emailHelp" class="form-text text-muted">The @gmail.com email address that you will use with GCP.</small>
<div class="invalid-feedback" aria-live="polite">Please provide a valid @gmail.com email address.</div>
</div>
<button type="submit" class="btn btn-primary">Continue</button>
</form>
<div class='d-none' id="paypal-button-container">
<span id="loading-text"></span>
</div>
</div>
If you need support, contact {{ page.support_address }}
<script type="text/javascript"> const support_address = "{{ page.support_address }}"; </script>{% if jekyll.environment == "production" %}
<script src="https://www.paypal.com/sdk/js?client-id=AUEsnSYbdrbOdYz8pzZU0ude32jv6JSvP1Uf9nNW0PzEbp3-VDXzAOFAoFQdPtkoytkiJ5sUwwZ6xirc&enable-funding=venmo¤cy=USD"></script> <script type="text/javascript"> const PAYPAL_MODE = 'LIVE'; </script>{% else %}
<script src="https://www.paypal.com/sdk/js?client-id=ATO5KjQC9-FA8iiRDD3Zl2WE4L3paJRaM3_6xX8XKmDvjW-SDVkrSbmgZpr6WoQnBU5oxPtMdzBg9CeL&enable-funding=venmo¤cy=USD"></script> <script type="text/javascript"> const PAYPAL_MODE = 'SANDBOX'; </script>{% endif %}
<script> function initPayPalButton() { document.getElementById('paypal-button-container').classList.remove('d-none'); document.getElementById('gcp-email').setAttribute('readonly', true); let gcp_email = document.getElementById('gcp-email').value; paypal.Buttons({ onInit: function(data, actions){ document.getElementById('loading-text').remove(); }, // https://developer.paypal.com/docs/checkout/reference/server-integration/set-up-transaction/ createOrder: function(data, actions) { // return fetch('http://localhost:8080/', { return fetch('https://us-central1-security-assignments-kali.cloudfunctions.net/security-assignments-paypal-order-create', { method: 'post', headers: { 'content-type': 'application/json' }, body: JSON.stringify({'gcp_email': gcp_email, 'paypal_mode': PAYPAL_MODE}) }).then(function(res){ return res.json() }).then(function(data){ return data.id }) }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { // Full available details console.log('Capture result', orderData, JSON.stringify(orderData, null, 2)); let paypal_id = orderData.purchase_units[0].payments.captures[0].id; // Show a success message within this page, e.g. const element = document.getElementById('paypal-button-container'); element.innerHTML = ''; let inner_html = `Your paypal transaction id is: ${paypal_id}
Your submitted GCP email address is: ${gcp_email}