$token, 'email' => $email) ); $response = \Stripe\Charge::create(array( 'customer' => $customer->id, 'amount' => $donation * 100, 'currency' => "usd" )); } if($interval == "weekly"){ $product = \Stripe\Product::create([ 'name' => 'Weekly Donate - $'. $donation , 'type' => 'service', ]); $plan = \Stripe\Plan::create([ 'currency' => 'usd', 'interval' => 'week', 'product' => $product->id, 'nickname' => 'weekly_donation', 'amount' => $donation * 100, ]); $customer = \Stripe\Customer::create(array( 'source' => $token, 'email' => $email) ); $subscription = \Stripe\Subscription::create(array( 'customer' => $customer->id, 'items' => array(array('plan' => $plan->id)), )); } if($interval == "monthly"){ $product = \Stripe\Product::create([ 'name' => 'Monthly Donate - $'. $donation , 'type' => 'service', ]); $plan = \Stripe\Plan::create([ 'currency' => 'usd', 'interval' => 'month', 'product' => $product->id, 'nickname' => 'monthly_donation', 'amount' => $donation * 100, ]); $customer = \Stripe\Customer::create(array( 'source' => $token, 'email' => $email) ); $subscription = \Stripe\Subscription::create(array( 'customer' => $customer->id, 'items' => array(array('plan' => $plan->id)), )); } } } catch(\Stripe\Error\Card $e) { $body = $e->getJsonBody(); $err = $body['error']; print('Status is:' . $e->getHttpStatus() . "\n"); print('Type is:' . $err['type'] . "\n"); print('Code is:' . $err['code'] . "\n"); print('Param is:' . $err['param'] . "\n"); print('Message is:' . $err['message'] . "\n"); }catch(Exception $e) { echo "unable to sign up customer:" . $_POST['stripeEmail']. ", error:" . $e->getMessage(); } catch (\Stripe\Error\RateLimit $e) { // Too many requests made to the API too quickly echo "Too many requests sent to Stripe's API too quickly"; } catch (\Stripe\Error\InvalidRequest $e) { // Invalid parameters were supplied to Stripe's API } catch (\Stripe\Error\Authentication $e) { // Authentication with Stripe's API failed // (maybe you changed API keys recently) echo " Authentication with Stripe's API failed"; } catch (\Stripe\Error\ApiConnection $e) { // Network communication with Stripe failed echo " Network communication with Stripe failed"; } catch (\Stripe\Error\Base $e) { // Display a very generic error to the user, and maybe send // yourself an email echo "You have encountered an error!"; } catch (Exception $e) { // Something else happened, completely unrelated to Stripe echo "Error: Something else happened, completely unrelated to Stripe"; } ?> About Us | World Discovery Cares

Follow us on the social network

picture picture picture picture

About Us
You can find out more about the vision of World Discovery Cares by simply reading about us.

About Our Company
World Discovery Cares has a heart for God and a passion for those in need.

picture

World Discovery Cares is a non-profit organization with a passion for helping local children, single mothers, and widows.  We have a heart for the underprivileged and want to bless others as God has blessed us. We strive to make a difference in the lives of those who are less fortunate in the community around us by providing them with the means to a better way of life.

World Discovery Cares cherishes and loves the underpriviliged. Here at World Discovery Cares, all man is created equal and has an equal right to life.

World Discovery Cares
World Discovery Cares wants you to know more.