當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Reservation::releaseReservation方法代碼示例

本文整理匯總了PHP中Reservation::releaseReservation方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reservation::releaseReservation方法的具體用法?PHP Reservation::releaseReservation怎麽用?PHP Reservation::releaseReservation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Reservation的用法示例。


在下文中一共展示了Reservation::releaseReservation方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ServiceEndpoints

if (isset($_POST["referenceSequence"])) {
    $referenceSequence = $_POST["referenceSequence"];
}
$endpoints = new ServiceEndpoints();
$paymentResponse = null;
if (!isset($submit)) {
    $username = "Fred.Jones";
    $password = "1234";
    $endpoint = $endpoints->getAmountReservationReleaseEndpoint();
    $endUserId = "tel:+123456789";
    $referenceCode = "REF-12345";
    $referenceSequence = 4;
} else {
    $endpoints->setAmountReservationReleaseEndpoint($endpoint);
    $reservation = new Reservation($endpoints, $username, $password);
    $paymentResponse = $reservation->releaseReservation($endUserId, $referenceCode, $referenceSequence);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>    
    <title>
      GSM World | OneAPI Toolkit
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="GSM, GSMA, GSM Association, Mobile, Mobile World Congress, Mobile Asia Congress, Mobile Awards, Global Mobile Awards, 3GSM, Mobile Broadband, Spectrum, Development Fund, Mobile Money, Mobile Innovation, Pathfinder, Open Connectivity, Fraud" />
    <meta name="description" content="The GSMA represents the interests of the worldwide mobile communications industry. Spanning 219 countries, the GSMA unites more than 750 of the world&rsquo;s mobile operators, as well as 200 companies in the broader mobile ecosystem." />
    <link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="toolkit.css" type="text/css" media="screen" />

    <link rel="shortcut icon" href="#" />
</head>
開發者ID:GSMADeveloper,項目名稱:GSMA-OneAPI,代碼行數:31,代碼來源:paymentreleasereservation.php


注:本文中的Reservation::releaseReservation方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。