PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
academe
/
authorizenet-objects
/
src
/
Request
<?php namespace Academe\AuthorizeNet\Request; /** * */ use Academe\AuthorizeNet\Auth\MerchantAuthentication; use Academe\AuthorizeNet\TransactionRequestInterface; use Academe\AuthorizeNet\AbstractModel; use Academe\AuthorizeNet\Request\Model\Profile; use Academe\AuthorizeNet\Request\Collections\HostedPaymentSettings; class GetHostedPaymentPage extends AbstractRequest { protected $refId; protected $transactionRequest; protected $hostedPaymentSettings; public function __construct( MerchantAuthentication $merchantAuthentication, TransactionRequestInterface $transactionRequest ) { parent::__construct($merchantAuthentication); $this->setTransactionRequest($transactionRequest); } public function jsonSerialize() { $data = []; // Start with the authentication details. $data[$this->getMerchantAuthentication()->getObjectName()] = $this->getMerchantAuthentication(); if ($this->hasRefId()) { $data['refId'] = $this->getRefId(); } // Add the expanded tranasation. $data[$this->getTransactionRequest()->getObjectName()] = $this->transactionRequest; if ($this->hasHostedPaymentSettings()) { $data['hostedPaymentSettings'] = $this->getHostedPaymentSettings(); } return [ $this->getObjectName() => $data, ]; } protected function setRefId($value) { $this->refId = $value; } protected function setTransactionRequest(TransactionRequestInterface $value) { $this->transactionRequest = $value; } protected function setHostedPaymentSettings(HostedPaymentSettings $value) { $this->hostedPaymentSettings = $value; } }
[-] CreateCustomerProfile.php
[edit]
[-] CreateTransaction.php
[edit]
[+]
Model
[+]
..
[+]
Collections
[-] GetHostedPaymentPage.php
[edit]
[-] CreateCustomerPaymentProfile.php
[edit]
[-] AbstractRequest.php
[edit]
[+]
Transaction
[-] GetTransactionDetails.php
[edit]
[-] UpdateSplitTenderGroup.php
[edit]