This file contains 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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb | |
sudo dpkg -i elasticsearch-0.90.7.deb |
This file contains 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
## CREATE THE INDEX WITH ANALYZERS AND MAPPINGS | |
curl -XPUT 'http://127.0.0.1:9200/eshtml/?pretty=1' -d ' | |
{ | |
"mappings" : { | |
"page" : { | |
"dynamic":false, | |
"properties" : { | |
"title" : { | |
"fields" : { |
This file contains 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
#Create a Card Token | |
curl https://api.stripe.com/v1/tokens \ | |
-u [private key]: \ | |
-d "card[number]=4242424242424242" \ | |
-d "card[exp_month]=12" \ | |
-d "card[exp_year]=2015" \ | |
-d "card[cvc]=123" | |
curl https://api.stripe.com/v1/charges \ | |
-u [private key]: \ |
This file contains 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
//create subscription | |
// $20 a month | |
curl https://api.stripe.com/v1/customers/cus_18nj91X8lMXyju/subscriptions | |
-u private key: | |
-d plan=gold | |
//change subscription - upgrade plan | |
//$40 a month | |
curl https://api.stripe.com/v1/customers/cus_18nj91X8lMXyju/subscriptions/sub_4HWcxqoS8wG7T3 \ | |
-u private key: \ |
This file contains 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
<div class="modal" style="opacity: 1; -webkit-transform: none; top: 130px; display: block;"><div class="subscription-add-or-edit-view standard modal-dialog-form-content-view"><div class="modal-inner"> | |
<div class="modal-header"> | |
<h2>Add subscription</h2> | |
</div> | |
<div class="modal-sheet-inner"> | |
<div class="modal-content"> | |
<span class="modal-error"> |
This file contains 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
curl https://api.stripe.com/v1/customers/cus_id | |
-u YOUR_SECRET_KEY: | |
-d "default_card=card_id" |
This file contains 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
<?php | |
require_once(dirname(__FILE__) . '/config.php'); | |
$token = $_POST['stripeToken']; | |
$customer = Stripe_Customer::create(array( | |
'email' => '[email protected]', | |
'card' => $token | |
'plan' => 'fancy_plan_id' | |
)); |
This file contains 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
NSDictionary *achInfo = @{@"country":@"US", @"routing_number":rountingNumber, @"account_number":accountNumber}; | |
NSDictionary *dataDictionary = @{@"bank_account[country]": @"US", | |
@"bank_account[routing_number]" : rountingNumber, | |
@"bank_account[account_number]" : accountNumber}; |
This file contains 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
stripeToken: tok_14QSDT2BnSLXc1GoU6JR4ZoX | |
stripeTokenType: card | |
stripeEmail: [email protected] | |
stripeBillingName: Matthew Arkin | |
stripeBillingAddressLine1: 123 Main St | |
stripeBillingAddressApt: | |
stripeBillingAddressZip: 94105 | |
stripeBillingAddressCity: San Francisco | |
stripeBillingAddressState: CA | |
stripeBillingAddressCountry: United States |
This file contains 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
stripeToken: tok_14QSDT2BnSLXc1GoU6JR4ZoX | |
stripeTokenType: card | |
stripeEmail: [email protected] | |
stripeBillingName: Matthew Arkin | |
stripeBillingAddressLine1: 123 Main St | |
stripeBillingAddressApt: | |
stripeBillingAddressZip: 94105 | |
stripeBillingAddressCity: San Francisco | |
stripeBillingAddressState: CA | |
stripeBillingAddressCountry: United States |
OlderNewer