A Pen by Richard Moot on CodePen.
A Pen by Richard Moot on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Phase 1 | |
var decryptA = function(message){ | |
var temp = message.split(" "), | |
i = 0, | |
result = []; | |
for(i = 0;i < temp.length;i++){ | |
result.push(temp[i].slice(temp[i].length - 1)) | |
} | |
result = result.join(""); | |
return result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint camelcase: 0 */ | |
import Shippo from "shippo"; | |
import { Meteor } from "meteor/meteor"; | |
import { SimpleSchema } from "meteor/aldeed:simple-schema"; | |
import { Logger } from "/server/api"; | |
import { purchaseAddressSchema, parcelSchema } from "../lib/shippoApiSchema"; | |
export const ShippoApi = { | |
methods: {} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"carrier": "ups", | |
"tracking_number": "92748931507953573000007541", | |
"address_from": null, | |
"address_to": null, | |
"eta": null, | |
"servicelevel": { | |
"token": null, | |
"name": null | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shippo = require('shippo')('YOUR_SHIPPO_TOKEN'); | |
var customsItem = { | |
"description":"T-Shirt", | |
"quantity":20, | |
"net_weight":"1", | |
"mass_unit":"lb", | |
"value_amount":"200", | |
"value_currency":"USD", | |
"origin_country":"US", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": [], | |
"info": { | |
"name": "Rest API Planning", | |
"_postman_id": "4b9b4065-d319-6f32-bae2-2dd4e0f33d0d", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shippo = require('shippo')('YOUR_SHIPPO_API_KEY'); | |
let addressObject = { | |
name: "Shawn Ippotle", | |
company: "Shippo", | |
street1: "218 Claytona St.", | |
city: "San Francisco", | |
state: "CA", | |
zip: "94117", | |
country: "US", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="https://js.squareup.com/v2/paymentform"> | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cardNonceResponseReceived: function(errors, nonce, cardData) { | |
if (errors) { | |
// Log errors from nonce generation to the Javascript console | |
console.log("Encountered errors:"); | |
errors.forEach(function(error) { | |
console.log(" " + error.message); | |
}); | |
return; | |
} | |
console.log(cardData); |
OlderNewer