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