Transaction

Informations about a transaction during which is realized the payment.

package

Default

Methods

Initialize the transaction model.

__construct(\Dotpay\Model\Customer $customer, \Dotpay\Model\Payment $payment) 

Arguments

$customer

\Dotpay\Model\Customer

Customer model for the transaction

$payment

\Dotpay\Model\Payment

Payment which is realized by the transaction

Add a new subpayment to the transaction.

addSubPayment(\Dotpay\Model\Payment $subPayment) : \Dotpay\Model\Transaction

Arguments

$subPayment

\Dotpay\Model\Payment

The subpayment to add

Response

\Dotpay\Model\Transaction

Return an url where Dotpay server should redirect a customer.

getBackUrl() : string

Response

string

Return an url where dotpay server should send a notification with status of payment.

getConfirmUrl() : string

Response

string

Return a customer who realize the transaction.

getCustomer() : \Dotpay\Model\Customer

Return an identifier of the transaction, which depends on seller id, order amount, order currency and customer language.

getdentifier() : string

Response

string

Return a payment which is realized by the transaction.

getPayment() : \Dotpay\Model\Payment

Return a list of subpayments.

getSubPayments() : array

Response

array

Set an url where Dotpay server should redirect a customer.

setBackUrl(string $backUrl) : \Dotpay\Model\Transaction
Throws
\Dotpay\Exception\BadParameter\UrlException

Thrown when the given url is incorrect

Arguments

$backUrl

string

Url where Dotpay server should redirect a customer

Response

\Dotpay\Model\Transaction

Set an url where dotpay server should send a notification with status of payment.

setConfirmUrl(string $confirmUrl) : \Dotpay\Model\Transaction
Throws
\Dotpay\Exception\BadParameter\UrlException

Thrown when the given url is incorrect

Arguments

$confirmUrl

string

Url where dotpay server should send a notification with status of payment

Response

\Dotpay\Model\Transaction

Set a customer who realize the transaction.

setCustomer(\Dotpay\Model\Customer $customer) : \Dotpay\Model\Transaction

Arguments

$customer

\Dotpay\Model\Customer

A customer who realize the transaction

Response

\Dotpay\Model\Transaction

Set a payment which is realized by the transaction.

setPayment(\Dotpay\Model\Payment $payment) : \Dotpay\Model\Transaction

Arguments

$payment

\Dotpay\Model\Payment

A payment which is realized by the transaction

Response

\Dotpay\Model\Transaction

Properties

Customer model for the payment

customer : \Dotpay\Model\Customer
var

Customer model for the payment

Type(s)

\Dotpay\Model\Customer

Payment which is realized by the transaction

payment : \Dotpay\Model\Payment
var

Payment which is realized by the transaction

Type(s)

\Dotpay\Model\Payment

Subpayments using in multimerchant functionality

subPayments : array
var

Subpayments using in multimerchant functionality

Type(s)

array

Url where Dotpay server should redirect a customer

backUrl : string
var

Url where Dotpay server should redirect a customer

Type(s)

string

Url where dotpay server should send a notification with status of payment

confirmUrl : string
var

Url where dotpay server should send a notification with status of payment

Type(s)

string