Clean up.
This commit is contained in:
		@@ -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.
 | 
					This is an Ubercart payment gateway module for Stripe.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Versions of the Stripe PHP Library and Stripe API that this module currently
 | 
					Versions of the Stripe PHP Library and Stripe API that this module currently
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -568,15 +568,13 @@ function uc_stripe_charge($order_id, $amount, $data) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    foreach($order->products as $item){
 | 
					    foreach($order->products as $item){
 | 
				
			||||||
      $titles[] = $item->title;
 | 
					      $titles[] = $item->title;
 | 
				
			||||||
			$models[] = $item->model;
 | 
					      $models[] = $item->model;}
 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!empty($models)) {
 | 
					    if (!empty($models)) {
 | 
				
			||||||
      $metadata['models'] = implode(";", $models);
 | 
					      $metadata['models'] = implode(";", $models);
 | 
				
			||||||
	}
 | 
					
 | 
				
			||||||
    if (!empty($titles)) {
 | 
					    if (!empty($titles)) {
 | 
				
			||||||
      $metadata['titles'] = implode(";", $titles);
 | 
					      $metadata['titles'] = implode(";", $titles);
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $params = array(
 | 
					    $params = array(
 | 
				
			||||||
      "amount" => $amount,
 | 
					      "amount" => $amount,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user