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


PHP Merchant::setTerminalId方法代码示例

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


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

示例1: Merchant

<?php

/**
 * Created by PhpStorm.
 * User: agustin
 * Date: 27/07/2015
 * Time: 12:34
 */
$path_to_IncludeClases = "../com/payhub/ws/extra/includeClasses.php";
include_once $path_to_IncludeClases;
//Defining the Web Service URL
$WsURL = "https://sandbox-api.payhub.com/api/v2/";
$oauth_token = "2a5d6a73-d294-4fba-bfba-957a4948d4a3";
//Defining data for the SALE transaction
// Merchant data (obtained from the payHub Virtual Terminal (3rd party integration)
$merchant = new Merchant();
$merchant->setOrganizationId(10074);
$merchant->setTerminalId(134);
$transaction = new TransactionManager($merchant, $WsURL, $oauth_token);
$result = $transaction->getGeneralSettings();
var_dump($result);
开发者ID:payhub,项目名称:payhubws-public-sdk,代码行数:21,代码来源:GeneralSettingsSample.php

示例2: Merchant

<?php

/**
 * Created by PhpStorm.
 * User: agustin
 * Date: 28/07/2015
 * Time: 15:40
 */
$path_to_IncludeClases = "../com/payhub/ws/extra/includeClasses.php";
include_once $path_to_IncludeClases;
//Defining the Web Service URL
$WsURL = "https://staging-api.payhub.com/api/v2/";
$oauth_token = "107d74ab-4a18-4713-88ff-69bd05710086";
//Defining data for the SALE transaction
// Merchant data (obtained from the payHub Virtual Terminal (3rd party integration)
$merchant = new Merchant();
$merchant->setOrganizationId(10127);
$merchant->setTerminalId(215);
$transaction = new TransactionManager($merchant, $WsURL, $oauth_token);
$result = $transaction->getAllCustomerForRecurringBillInformation();
var_dump($result);
开发者ID:payhub,项目名称:payhubws-public-sdk,代码行数:21,代码来源:ResponseInformationSamples.php


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