我正在集成示例代码
我想启用商家私人物品数据,以便我可以传递用户 ID、期间和属性
我无法理解我该怎么做。
我的 googlecheckout 按钮出现在这里,如下所示:
require_once($jconfig->gc_path.'/googlecart.php');
require_once($jconfig->gc_path.'/googleitem.php');
require_once($jconfig->gc_path.'/googleshipping.php');
require_once($jconfig->gc_path.'/googletax.php');
$merchant_id = "SAMPLE"; // Your Merchant ID
$merchant_key = "SAMPLE"; // Your Merchant Key
$server_type = "sandbox";
$currency = "USD";
$cart = new GoogleCart($merchant_id, $merchant_key, $server_type,
$currency);
$total_count = 1;
$item_1 = new GoogleItem('title', // Item name
'descriptiom',
$price,
1);
$cart->AddItem($item_1);
$cart->SetContinueShoppingUrl($jconfig->response_handler.$generate_url);
// Request buyer's phone number
$cart->SetRequestBuyerPhone(true);
// Display Google Checkout button
//echo $this->product[0]['welcome_pack']+$this->product[0]['airport_pick_up']+$this->product[0]['airport_drop_off']+$this->product[0]['textbooks']+$totle;
echo $cart->CheckoutButtonCode("SMALL");
我必须在 googlecart.php 中启用它吗?