mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +01:00
43 lines
884 B
PHP
43 lines
884 B
PHP
<?php
|
|
|
|
namespace Xentral\Modules\Dhl\Factory;
|
|
|
|
use Xentral\Modules\Dhl\Api\DhlApi;
|
|
|
|
/**
|
|
* Class DhlApiFactory
|
|
*
|
|
* @package Xentral\Modules\Dhl\Factory
|
|
*/
|
|
class DhlApiFactory
|
|
{
|
|
public static function createProductionInstance(
|
|
$user,
|
|
$pass,
|
|
$accountNumber,
|
|
$senderName,
|
|
$senderStreetName,
|
|
$senderStreetNo,
|
|
$senderZip,
|
|
$senderCity,
|
|
$senderCountry,
|
|
$senderEmail
|
|
) {
|
|
return new DhlApi(
|
|
$user,
|
|
$pass,
|
|
'wawision_2',
|
|
'SQBKcoTz8GgOUp31VNyoZfWooSad3n',
|
|
$accountNumber,
|
|
'https://cig.dhl.de/services/production/soap',
|
|
$senderName,
|
|
$senderStreetName,
|
|
$senderStreetNo,
|
|
$senderZip,
|
|
$senderCity,
|
|
$senderCountry,
|
|
$senderEmail
|
|
);
|
|
}
|
|
}
|