1 | <?php |
||
18 | class AuthorizeNetSOAP extends SoapClient |
||
|
|||
19 | { |
||
20 | const WSDL_URL = "https://api2.authorize.net/soap/v1/Service.asmx?WSDL"; |
||
21 | const LIVE_URL = "https://api2.authorize.net/soap/v1/Service.asmx"; |
||
22 | const SANDBOX_URL = "https://apitest.authorize.net/soap/v1/Service.asmx"; |
||
23 | |||
24 | public $sandbox; |
||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | */ |
||
29 | 2 | public function __construct() |
|
34 | |||
35 | /** |
||
36 | * Switch between the sandbox or production gateway. |
||
37 | * |
||
38 | * @param bool |
||
39 | */ |
||
40 | public function setSandbox($bool) |
||
44 | |||
45 | /** |
||
46 | * Get all types as PHP Code. |
||
47 | * @return string |
||
48 | */ |
||
49 | 1 | public function getSoapTypes() |
|
62 | |||
63 | /** |
||
64 | * Get all methods as PHP Code. |
||
65 | * @return string |
||
66 | */ |
||
67 | 1 | public function getSoapMethods() |
|
81 | |||
82 | /** |
||
83 | * Create a file from the WSDL for reference. |
||
84 | */ |
||
85 | 1 | public function saveSoapDocumentation($path) |
|
96 | |||
97 | |||
98 | |||
99 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.