first_pay_wsdl/firstpaysdk

There is no license information available for the latest version (dev-master) of this package.

Package generated from http://localhost/firstpay_integration/public/FapxConnect.xml using wsdltophp/packagegenerator

dev-master 2019-11-24 23:28 UTC

This package is auto-updated.

Last update: 2024-04-25 09:45:58 UTC


README

'http://localhost/firstpay_integration/public/FapxConnect.xml', * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true, * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login', * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password', * ); * etc.... */ require_once __DIR__ . '/vendor/autoload.php'; /** * Minimal options */ $options = array( \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://localhost/firstpay_integration/public/FapxConnect.xml', \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(), ); /** * Samples for Get ServiceType */ $get = new \ServiceType\Get($options); $get->setSoapHeaderXHeader(new \StructType\XHeader()); /** * Sample call for GetTransactionUpdateXml operation/method */ if ($get->GetTransactionUpdateXml(new \StructType\GetTransactionUpdateXml()) !== false) { print_r($get->getResult()); } else { print_r($get->getLastError()); } /** * Sample call for GetTransactionUpdateList operation/method */ if ($get->GetTransactionUpdateList(new \StructType\GetTransactionUpdateList()) !== false) { print_r($get->getResult()); } else { print_r($get->getLastError()); } /** * Sample call for GetTransaction operation/method */ if ($get->GetTransaction(new \StructType\GetTransaction()) !== false) { print_r($get->getResult()); } else { print_r($get->getLastError()); } /** * Samples for Send ServiceType */ $send = new \ServiceType\Send($options); $send->setSoapHeaderXHeader(new \StructType\XHeader()); /** * Sample call for SendPaymentList operation/method */ if ($send->SendPaymentList(new \StructType\SendPaymentList()) !== false) { print_r($send->getResult()); } else { print_r($send->getLastError()); } /** * Sample call for SendTransactionsList operation/method */ if ($send->SendTransactionsList(new \StructType\SendTransactionsList()) !== false) { print_r($send->getResult()); } else { print_r($send->getLastError()); } /** * Sample call for SendTransaction operation/method */ if ($send->SendTransaction(new \StructType\SendTransaction()) !== false) { print_r($send->getResult()); } else { print_r($send->getLastError()); } /** * Sample call for SendTransactionsData operation/method */ if ($send->SendTransactionsData(new \StructType\SendTransactionsData()) !== false) { print_r($send->getResult()); } else { print_r($send->getLastError()); } /** * Sample call for SendTransactionsXml operation/method */ if ($send->SendTransactionsXml(new \StructType\SendTransactionsXml()) !== false) { print_r($send->getResult()); } else { print_r($send->getLastError()); } /** * Sample call for SendTransactionsPostAsBulk operation/method */ if ($send->SendTransactionsPostAsBulk(new \StructType\SendTransactionsPostAsBulk()) !== false) { print_r($send->getResult()); } else { print_r($send->getLastError()); }