我正在尝试使用谷歌数字商品添加多个项目,我想要的是让我的用户能够使用他们购物车中的多个项目结帐。这是包含一项的代码(不是完整代码)。如何添加多个?
$payload = array(
"iss" => $row['seller_identifier'], "aud" => "Google",
"typ" => "google/payments/inapp/item/v1", "exp" => time() + 3600,
"iat" => time(),
"request" => array(
"name" => $_SESSION["itemname"],
"price" => $_SESSION["itemprice"], "currencyCode" => "USD",
"sellerData" => "user_id:" . $this->userid
)
);