function pippin_stripe_process_payment() { if(isset($_POST['action']) && $_POST['action'] == 'stripe' && wp_verify_nonce($_POST['stripe_nonce'], 'stripe-nonce')) { global $stripe_options; // load the stripe libraries require_once(STRIPE_BASE_DIR . '/lib/Stripe.php'); // retrieve the token generated by stripe.js $token = $_POST['stripeToken']; // check if we are using test mode if(isset($stripe_options['test_mode']) && $stripe_options['test_mode']) { $secret_key = $stripe_options['test_secret_key']; } else { $secret_key = $stripe_options['live_secret_key']; } // attempt to charge the customer's card try { Stripe::setApiKey($secret_key); $charge = Stripe_Charge::create(array( 'amount' => 1000, // $10 'currency' => 'usd', 'card' => $token ) ); // redirect on successful payment $redirect = add_query_arg('payment', 'paid', $_POST['redirect']); } catch (Exception $e) { // redirect on failed payment $redirect = add_query_arg('payment', 'failed', $_POST['redirect']); } // redirect back to our previous page with the added query variable wp_redirect($redirect); exit; } } add_action('init', 'pippin_stripe_process_payment');
Warning: Cannot modify header information - headers already sent by (output started at /home/makerspaceu/makerspaceurbana.org/wp-content/plugins/stripe-cancelation/includes/process-payment.php:42) in /home/makerspaceu/makerspaceurbana.org/wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations.php on line 94
Girls do Science! | Makerspace Urbana

Girls do Science!

Posted by on April 30, 2013 in Community Outreach, Workshops | Comments Off

Girls do Science!

365 (115 of 1) (2)The wonderful people at the Orpheum Children’s Science Museum approached us recently about doing a workshop for their Girls do Science Club. We had about about 20 girls from 2nd grade-6th grade coming by so some of our member came up with the idea of doing a light up origami project with the kids. As you can see it turned out great.