diff --git a/README.txt b/README.txt
index a01d055..2e42089 100644
--- a/README.txt
+++ b/README.txt
@@ -1,9 +1,3 @@
-Based on the 7.x-2.x-dev branch at https://www.drupal.org/project/uc_stripe. Using
-this as a working repo to track changes. Iām using this on some production sites,
-but no guarantees are made for anyone else. Look through the code!
-
-āā
-
This is an Ubercart payment gateway module for Stripe.
Versions of the Stripe PHP Library and Stripe API that this module currently
diff --git a/images/solid-dark.svg b/images/solid-dark.svg
deleted file mode 100644
index 77561bd..0000000
--- a/images/solid-dark.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/uc_stripe.module b/uc_stripe.module
index d5b8015..b39552e 100644
--- a/uc_stripe.module
+++ b/uc_stripe.module
@@ -150,15 +150,6 @@ function uc_stripe_form_uc_cart_checkout_form_alter(&$form, &$form_state) {
'#weight' => -1000,
);
- // Powered by Stripe (logo from https://stripe.com/about/resources)
- if (variable_get('uc_stripe_poweredby', FALSE)) {
- $payment_form['field_message'] = array(
- '#type' => 'item',
- '#markup' => "
",
- '#weight' => 1,
- );
- }
-
$payment_form['stripe_token'] = array(
'#type' => 'hidden',
'#default_value' => 'default',
@@ -319,24 +310,10 @@ function uc_stripe_settings_form() {
$form['uc_stripe_settings']['uc_stripe_poweredby'] = array(
'#type' => 'checkbox',
'#title' => t('Powered by Stripe'),
- '#description' => 'Show "powered by Stripe" in checkout.',
+ '#description' => 'Show "powered by Stripe" in shopping cart.',
'#default_value' => variable_get('uc_stripe_poweredby', FALSE),
);
- $form['uc_stripe_settings']['uc_stripe_metadata_titles'] = array(
- '#type' => 'checkbox',
- '#title' => t('Metadata: Title'),
- '#description' => t('Include order item title(s) in Stripe metadata.'),
- '#default_value' => variable_get('uc_stripe_metadata_titles', FALSE),
- );
-
- $form['uc_stripe_settings']['uc_stripe_metadata_models'] = array(
- '#type' => 'checkbox',
- '#title' => t('Metadata: Model'),
- '#description' => t('Include item model(s) (SKU(s)) in Stripe metadata.'),
- '#default_value' => variable_get('uc_stripe_metadata_models', FALSE),
- );
-
return $form;
}
@@ -553,6 +530,7 @@ function uc_stripe_charge($order_id, $amount, $data) {
return $result;
}
+
// Charge the customer
try {
@@ -561,30 +539,11 @@ function uc_stripe_charge($order_id, $amount, $data) {
throw new Exception('No customer ID found');
}
- // Set up titles and SKUs
- $titles = array();
- $models = array();
- foreach($order->products as $item){
- $titles[] = $item->title;
- $models[] = $item->model;
- }
-
- if (variable_get('uc_stripe_metadata_titles',FALSE)==1 && variable_get('uc_stripe_metadata_models',FALSE)==1) {
- $metadata = array("titles" => implode(";", $titles),"models" => implode(";", $models));
- } elseif (variable_get('uc_stripe_metadata_titles',FALSE)==1 && variable_get('uc_stripe_metadata_models',FALSE)==0) {
- $metadata = array("titles" => implode(";", $titles));
- } elseif (variable_get('uc_stripe_metadata_titles',FALSE)==0 && variable_get('uc_stripe_metadata_models',FALSE)==1) {
- $metadata = array("models" => implode(";", $models));
- } elseif (variable_get('uc_stripe_metadata_titles',FALSE)==0 && variable_get('uc_stripe_metadata_models',FALSE)==0) {
- $metadata = array();
- }
-
$params = array(
"amount" => $amount,
"currency" => strtolower($order->currency),
"customer" => $stripe_customer_id,
"description" => t("Order #@order_id", array("@order_id" => $order_id)),
- "metadata" => $metadata,
);
if (!empty($shipping_info)) {
$params['shipping'] = $shipping_info;