当前位置: 首页>>代码示例>>PHP>>正文


PHP HTTPClient::getServiceInformation方法代码示例

本文整理汇总了PHP中HTTPClient::getServiceInformation方法的典型用法代码示例。如果您正苦于以下问题:PHP HTTPClient::getServiceInformation方法的具体用法?PHP HTTPClient::getServiceInformation怎么用?PHP HTTPClient::getServiceInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTTPClient的用法示例。


在下文中一共展示了HTTPClient::getServiceInformation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: HTTPClient

$_identityToken = '';
// Provided Token, The Identity Token should be stored in an encrypted format and read into the application.
// This can be stored either in a database or on the disk, but must always be protected and encrypted.
// If the IdentityToken is compromised you must notify us immmediately so we can issue a new IdentityToken
// This is main means of authentication to the platform, essentially this is your password.
require_once ABSPATH . '/ConfigFiles/ReadConfigValues.php';
/*
 *
 * Create new web service client class using provided token
 * Profile ID and service ID are not required, but increase speed of script
 * You may also pass the session token to increase speed again, but that token
 * will need to be generated and saved elsewhere.
 *
 */
$client = new HTTPClient($_identityToken, $_baseURL);
$_serviceInformation = $client->getServiceInformation();
if (count($_serviceInformation['BankcardServices'] == 1) && $_serviceInformation['BankcardServices']['BankcardService']) {
    $_bankcardServices = $_serviceInformation['BankcardServices'];
    include_once dirname(__FILE__) . '/TransactionProcessingScripts/BankcardTransactionProcessing.php';
}
//if (count($_serviceInformation['ElectronicCheckingServices'] == 1) && $_serviceInformation['ElectronicCheckingService']['ElectronicCheckingService'] )
//	$_electronicCheckingServices = $_serviceInformation->ElectronicCheckingServices;
//	include_once dirname(__FILE__).'../TransactionProcessingScripts/ElectronicCheckingTransactionProcessing.php';
//}
//if (count($_serviceInformation['StoredValueServices'] == 1) && $_serviceInformation['StoredValueServices']['StoredValueService'] ){
//	$_storedvalueServices = $_serviceInformation['StoredValueServices'];
//	include_once dirname(__FILE__).'../TransactionProcessingScripts/StoredValueTransactionProcessing.php';
//}
?>

开发者ID:romackdnr,项目名称:dnrpiggyments,代码行数:29,代码来源:TransactionProcessing.php

示例2: HTTPClient

 * Computer Software--Licensing clause at NASA FAR supplement
 * 16-52.227-86; or their equivalent.
 *
 * Information in this software is subject to change without notice
 * and does not represent a commitment on the part of IP Commerce.
 *
 * Sample Code is for reference Only and is intended to be used for educational purposes. It's the responsibility of
 * the software company to properly integrate into their solution code that best meets their production needs.
 */
require_once ABSPATH . '/WebServiceProxies/HTTPClient.php';
$client = new HTTPClient($_identityToken, $_baseURL);
/*
 * Retrieve Service Information
 */
if ($_serviceId == null) {
    $response = $client->getServiceInformation();
    $_serviceInformation = $response;
    /*
     * If multiple services exist print them all to the browser
     */
    /*
     * Note you may have multiple ServiceId's in your array of
     * Get Service Information.  Assign your Service Id appropriately
     * Note:  Store the Service Id after this step.  This will remain
     * static for your application unless you add additional services.  This step
     * only needs to occur during first time application setup an or if additional
     * added at a later date.
     *
     */
    // Print Service Information
    if (count($_serviceInformation['BankcardServices'] == 1) && $_serviceInformation['BankcardServices']['BankcardService']) {
开发者ID:romackdnr,项目名称:dnrpiggyments,代码行数:31,代码来源:GetServiceInformation.php


注:本文中的HTTPClient::getServiceInformation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。