Skip to content

Commit

Permalink
Fixed important 'Class Stripe Not Found' error. Updated version numbe…
Browse files Browse the repository at this point in the history
…r and readme.
  • Loading branch information
naomicbush committed Apr 5, 2012
1 parent edf1ee6 commit 08b300c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
Binary file removed blueprints.png
Binary file not shown.
4 changes: 0 additions & 4 deletions change_log.txt

This file was deleted.

5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ http://wordpress.org/extend/plugins/gravity-forms-stripe/

[Stripe](https://stripe.com) allows you to process credit cards directly on your site, securely and easily, without having to deal with merchant accounts, PCI-compliance, or PayPal.

This Gravity Forms add-on integrates Stripe with your forms (adapted from the Gravity Forms Authorize.net Add-On) using the provided Stripe.js to make sure sensitive card information never hits your server.
This [Gravity Forms](http://naomicbush.com/getgravityforms) add-on integrates Stripe with your forms (adapted from the Gravity Forms Authorize.net Add-On) using the provided [Stripe.js](https://stripe.com/docs/stripe.js) to make sure sensitive card information never hits your server.

## Features
### Current
Expand Down Expand Up @@ -32,6 +32,9 @@ This Gravity Forms add-on integrates Stripe with your forms (adapted from the Gr
6. Under Forms->Stripe, add a Stripe feed for your new form.

## Changelog
### 0.1.1
* Fixes "Class 'Stripe' Not Found" error

### 0.1 (April 3, 2012)
* First release

Expand Down
6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://naomicbush.com/
Tags: form, forms, gravity, gravity form, gravity forms, gravityforms, stripe, payment, payments, subscribe, subscriptions, recurring billing, paypal, authorize.net, credit cards, online payment
Requires at least: 3.3.1
Tested up to: 3.3.1
Stable tag: 0.1
Stable tag: 0.1.1

Easy and secure credit card payments on your WordPress site with Stripe and Gravity Forms!

Expand Down Expand Up @@ -56,10 +56,12 @@ Yes, you need to install the [Gravity Forms Plugin](http://bit.ly/getgravityform
3. Stripe feed

== Changelog ==
= 0.1.1 =
* Fixes "Class 'Stripe' Not Found" error

= 0.1 =
* Initial release. Processes charges (one-time payments) only.

== Upgrade Notice ==

Please upgrade to the latest version.
Important fix! Please upgrade to the latest version or your form may not correctly process payments.
8 changes: 4 additions & 4 deletions stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Gravity Forms Stripe Add-On
Plugin URI: http://github.com/naomicbush/Gravity-Forms-Stripe
Description: Use Stripe to process credit card payments on your site, easily and securely, with Gravity Forms
Version: 0.1
Version: 0.1.1
Author: Naomi C. Bush
Author URI: http://naomicbush.com
Expand Down Expand Up @@ -775,7 +775,7 @@ public static function settings_page() {
}*/

private static function is_valid_key() {
$api_login = self::include_api();
self::include_api();
$settings = get_option( 'gf_stripe_settings' );

$year = date( 'Y' ) + 1;
Expand Down Expand Up @@ -2401,9 +2401,9 @@ private static function make_product_payment( $config, $validation_result ) {
return $validation_result;
}


self::include_api();
try {
Stripe::setApiKey( $secret_key );
$response = Stripe::setApiKey( $secret_key );
$response = Stripe_Charge::create( array(
'amount' => ( $form_data[ 'amount' ] * 100 ),
'currency' => 'usd',
Expand Down

0 comments on commit 08b300c

Please sign in to comment.