kmitgroup / google-checkout-php-sample-code

Automatically exported from code.google.com/p/google-checkout-php-sample-code
0 stars 0 forks source link

Digital Delivery Update #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
--- library/googlecart.php      2007-09-27 14:58:30.000000000 -0400
+++ payment/library/googlecart.php       2008-04-25 21:05
:23.000000000 -0400
@@ -446,13 +446,14 @@
         if($item->digital_content) {
           $xml_data->push('digital-content');
           if(!empty($item->digital_url)) {
-            $xml_data->element('description', substr($item-
>digital_description,

-                                                          0,
MAX_DIGITAL_DESC));
             $xml_data->element('url', $item->digital_url);
-//            To avoid NULL key message in GC confirmation Page
-            if(!empty($item->digital_key)) {
+          }
+          if(!empty($item->digital_key)) {
               $xml_data->element('key', $item->digital_key);
-            }
+          }
+          if(!empty($item->digital_description)) {
+            $xml_data->element('description', substr($item-
>digital_description,

+                                                          0,
MAX_DIGITAL_DESC));
           }
           else { 

Original issue reported on code.google.com by peng.y...@gmail.com on 8 May 2008 at 7:25

GoogleCodeExporter commented 9 years ago

Original comment by peng.y...@gmail.com on 16 May 2008 at 11:11