Skip to content

Instantly share code, notes, and snippets.

{
"state": function(value, meta) {
if(meta.card_type === "address") {
if(meta.sub_type === "billing") {
...
}
}
return value;
}
// update
OneID.attr({
"cards" : [
{
id: "",
attr: { ... }
},
...
});
@fastfrwrd
fastfrwrd / gist:6765627
Created September 30, 2013 15:36
replace this line, which is almost at the end of oneidcheckout_order.js
$('#LayoutColumn2 .Block').append('<div class="NotifyMessage" style="background-image: url(https://s3.amazonaws.com/integration.oneid.com/oneid_logo.png); background-repeat: no-repeat; background-position: 10px 50%; padding-left: 130px; padding-bottom: 15px;">Congratulations! Your OneID account has been set up using your information from this purchase. Your information is safe and will not be shared, unless you say so. OneID keeps your information private and under your control. Only you choose when and where to share your OneID online. OneID is free and easy to use. Look for the welcome email to complete account set-up coming soon.<p></div>');
var data = {
attribute_data: { ... }
cc_num: function() {
if (this.attribute_data.payment.cc_number) {
return OneIdUtil.prettyPrint(this.attribute_data.payment.cc_number)
} else return null;
}
};
// in the template
Ok -
His Dribbble looks good, but frankly, a UX guy in CA is the pinnacle of "geographically undesirable," with 75% of the team now in Austin. It's a big part of the reason that the previous design relationships were, frankly, dysfunctional, and unless this guy is a total unicorn, it just seems like a bad idea to jump the gun on this.
I don't mean to sound negative, but, well, I am.
Also, it's 7 work days until this demo and I don't particularly know what to build. By the time the designer gets anything to us it'll be 5.
P
OneID._proxy({
method: "donate",
params: {},
success: function() {
alert("success page here")
},
error: function() {}
});
@fastfrwrd
fastfrwrd / explanation.txt
Last active December 30, 2015 23:28
OneID QuickDonate config options
amounts: will show up as pre-selected bubbles on donate-amount.hgn
extraFields: self-explanatory
fallbackUrl: the page that will be shown if user is on an unsupported browser
minDonation: minimum amount a donor can give
maxDonation: maximum amount a donor can give
terms: HTML to be rendered as Terms of Service on donate-payment and donate-confirm
demoMode: bypasses payment
@fastfrwrd
fastfrwrd / email.txt
Last active December 31, 2015 02:09
Basic QuickDonate setup.
(this will prepopulate the email and amount fields.)
http://yourdomain.com/yourpage?oneid-donate-email=<USER_EMAIL>&oneid-donate-amount=<DONATION_AMOUNT>&oneid-autorun=true
@fastfrwrd
fastfrwrd / email_contents.html
Created December 18, 2013 19:00
AFV integration details
<a href="http://www.americanfamilyvoices.org/?oneid-donate-email={{ USER'S EMAIL ADDRESS HERE }}&oneid-donate-amount=10&oneid-autorun=true">
<QUICKDONATE BUTTON HERE>
</a>
app.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('//')
$interpolateProvider.endSymbol('//')
})