Я загрузил и отредактировал код для google checkout из google help.Here я указываю url расчета urchen на моем сайте. Но эта функция donot работает на моем сайте. Вот мой код function UseCase3 () { // Создаем новый объект корзины покупок $ merchant_id = "xxxxxxxxxxxxx"; // Ваш идентификатор продавца $ merchant_key = "xxxxxxxxxxxxx"; $ server_type = "песочница"; $ currency = "USD"; $ cart = новый GoogleCart ($ merchant_id, $ merchant_key, $ server_type, $ currency);Google checkout, Ошибка обновления базы данных
// Add items to the cart
$item = new GoogleItem("MegaSound 2GB MP3 Player",
"Portable MP3 player - stores 500 songs", 1, 175.49);
$item->SetMerchantPrivateItemData("<color>blue</color><weight>3.2</weight>");
$cart->AddItem($item);
// Add merchant calculations options
$cart->SetMerchantCalculations(
"https://mysite.com/google2/demo/responsehandlerdemo.php",
"false", // merchant-calculated tax
"true", // accept-merchant-coupons
"true"); // accept-merchant-gift-certificates
// Add merchant-calculated-shipping option
$ship = new GoogleMerchantCalculatedShipping("2nd Day Air", // Shippping method
10.00); // Default, fallback price
$restriction = new GoogleShippingFilters();
$restriction->AddAllowedPostalArea("GB");
$restriction->AddAllowedPostalArea("US");
$restriction->SetAllowUsPoBox(false);
$ship->AddShippingRestrictions($restriction);
$address_filter = new GoogleShippingFilters();
$address_filter->AddAllowedPostalArea("GB");
$address_filter->AddAllowedPostalArea("US");
$address_filter->SetAllowUsPoBox(false);
$ship->AddAddressFilters($address_filter);
$cart->AddShipping($ship);
// Set default tax options
$tax_rule = new GoogleDefaultTaxRule(0.15);
$tax_rule->SetWorldArea(true);
$cart->AddDefaultTaxRules($tax_rule);
$cart->AddRoundingPolicy("UP", "TOTAL");
// Specify <edit-cart-url>
$cart->SetEditCartUrl("https://mysite.com/google/demo/cartdemo.php");
// Specify "Return to xyz" link
$cart->SetContinueShoppingUrl("https://mysite.com");
// Display XML data
// echo "<pre>";
// echo htmlentities($cart->GetXML());
// echo "</pre>";
// Display a disabled, small button
echo $cart->CheckoutButtonCode("SMALL");
}
Любые сообщения об ошибках? Вы говорите, что это не работает, но как? –
Нет сообщения об ошибке. Я вызываю почтовую функцию в файле «https://mysite.com/google2/demo/responsehandlerdemo.php», я проверяю платеж с помощью песочницы, оплата завершена успешно. Но я не могу получить почту. Так Я предполагаю, что работа по подсчету мерчентов работает. – Shin
Является ли эта проблема из-за моих сертификатов SSL ??? – Shin