From ca86fcf970884fc4b164c8cbc78a5f46dc3b2750 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 27 Feb 2017 18:53:13 -0600 Subject: [PATCH 1/2] Include base_path() on Stripe image Closes #2. --- uc_stripe.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uc_stripe.module b/uc_stripe.module index 1005926..3c7706a 100644 --- a/uc_stripe.module +++ b/uc_stripe.module @@ -154,7 +154,7 @@ function uc_stripe_form_uc_cart_checkout_form_alter(&$form, &$form_state) { if (variable_get('uc_stripe_poweredby', FALSE)) { $payment_form['field_message'] = array( '#type' => 'item', - '#markup' => "Powered by Stripe", + '#markup' => "Powered by Stripe", '#weight' => 1, ); } -- 2.39.5 From 02d2e9852da76ef795c60633e4af114fdf73d3ee Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 27 Feb 2017 19:25:11 -0600 Subject: [PATCH 2/2] Remove development calls to dpm(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This breaks checkout (Error 500) when you don’t have https://www.drupal.org/project/devel installed. Closes #1. --- uc_stripe.module | 4 ---- 1 file changed, 4 deletions(-) diff --git a/uc_stripe.module b/uc_stripe.module index 1005926..41757d9 100644 --- a/uc_stripe.module +++ b/uc_stripe.module @@ -577,10 +577,6 @@ function uc_stripe_charge($order_id, $amount, $data) { $metadata = array("models" => implode(";", $models)); } -dpm($metadata,$name="metadata"); -dpm($titles,$name="titles"); -dpm($models,$name="models"); - $params = array( "amount" => $amount, "currency" => strtolower($order->currency), -- 2.39.5