diff --git a/gravity-forms-braintree.php b/gravity-forms-braintree.php index 45534e9..5426412 100644 --- a/gravity-forms-braintree.php +++ b/gravity-forms-braintree.php @@ -4,7 +4,7 @@ Plugin URI: http://plugify.io/ Description: Allow your customers to purchase goods and services through Gravity Forms via Braintree Payments Author: Plugify -Version: 1.1.1 +Version: 1.1.2 Author URI: http://plugify.io */ diff --git a/lib/class.plugify-gfaddonfeedstable.php b/lib/class.plugify-gfaddonfeedstable.php new file mode 100644 index 0000000..7ccfbe3 --- /dev/null +++ b/lib/class.plugify-gfaddonfeedstable.php @@ -0,0 +1,22 @@ +", $item['id'] ); + + return $img; + + } + +} + +?> diff --git a/lib/class.plugify-gform-braintree.php b/lib/class.plugify-gform-braintree.php index eb3dbdc..5128597 100644 --- a/lib/class.plugify-gform-braintree.php +++ b/lib/class.plugify-gform-braintree.php @@ -61,7 +61,7 @@ public function init_frontend () { * @since 1.0 * @return void */ - protected function authorize( $feed, $submission_data, $form, $entry ) { + public function authorize( $feed, $submission_data, $form, $entry ) { // Prepare authorization response payload $authorization = array( @@ -92,7 +92,16 @@ protected function authorize( $feed, $submission_data, $form, $entry ) { 'expirationDate' => sprintf( '%s/%s', $submission_data['card_expiration_date'][0], $submission_data['card_expiration_date'][1]), 'cardholderName' => $submission_data['card_name'], 'cvv' => $submission_data['card_security_code'] - ) + ), + 'customer' => array( + 'firstName' => $submission_data['card_name'] + ), + 'billing' => array( + 'firstName' => $submission_data['card_name'], + 'streetAddress' => $submission_data['address'], + 'locality' => $submission_data['city'], + 'postalCode' => $submission_data['zip'] + ) ); try { @@ -162,7 +171,7 @@ public function feed_settings_fields () { $settings = parent::feed_settings_fields(); // Remove billing information - $settings = $this->remove_field( 'billingInformation', $settings ); + //$settings = $this->remove_field( 'billingInformation', $settings ); // Remove options $settings = $this->remove_field( 'options', $settings ); diff --git a/readme.txt b/readme.txt index 05daa4d..c0c53be 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hello Tags: credit card,braintree,gravity form,payment Requires at least: 3.8 Tested up to: 3.9 -Stable tag: 1.1.1 +Stable tag: 1.1.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -54,13 +54,15 @@ Not currently, no. This will be released very shortly in version 1.1 No filters are currently available for this pre-release version == Screenshots == -1. You will be initially greeted with the empty feed page, prompting you to configure your Braintree settings. -2. Page for configuring your Braintree settings, such as Merchant ID -3. Configuring a Gravity Forms Braintree feed -4. List of active feeds +1. Easily configure your Braintree settings, allowing for quick and efficient setup. +2. Quickly and easily configure payment feeds under Form Settings of any Gravity Form +3. List of active feeds on the current form == Changelog == += 1.1.2 = +* Internal maintenance release. Version 1.2 is coming soon and it's going to be big! + = 1.1.1 = * Dashes and spaces are now removed from credit card number before sending to Braintree