SecupayTransactionProductDTO is used to pass all required data for creating SecupayTransactionProductModel

'amount' => 'string',
'currency' => 'string',
'purpose' => 'string',
'order_id' => 'string',
'basket' => '\Secuconnect\Client\Model\SecupayBasketItem[]',
'accrual' => 'bool',
'payment_action' => 'string',
'customer' => '\Secuconnect\Client\Model\PaymentCustomersProductModel',
'redirect_url' => '\Secuconnect\Client\Model\SecupayTransactionProductDTORedirectUrl',
'contract' => 'string',
'opt_data' => '\Secuconnect\Client\Model\SecupayTransactionProductDTOOptData',
'subscription' => '\Secuconnect\Client\Model\SecupayTransactionProductDTOSubscription',
'demo' => 'string',
'api_data' => '\Secuconnect\Client\Model\SecupayTransactionProductDTOApiData',
'experience' => '\Secuconnect\Client\Model\SecupayTransactionProductDTOExperience'

SecupayTransactionProductDTO

SecupayTransactionProductDTO is used to pass all required data for creating SecupayTransactionProductModel
propertydescriptiontypepossible values
amountTotal amount of payment in cents (or the smallest cash unit of the relevant currency)stringInteger
currencyISO 4217 code of currency, eg EUR for Euro.string

ISO 4217 code of currency

purposeThe purpose of the payment. This is the later assignment of the payment is for example on the account statement of the buyer.stringText
order_idSpecifying an order number. Depending on the contract setting, this must be unique for each payment.stringUp to user of API
basketA list of items that are being purchased.SecupayBasketItem[]SecupayBasketItem
accrualIndicates whether the payment is locked for pay-out (TRUE) or not (FALSE). Standard value here is FALSE.boolTrue/False; default False
payment_actionSpecifies whether a pre-authorization ("authorization") or instant payment ( "sale") is to be performed. Standard value here is "sale". The collection of the pre-authorized payment is made with the "capture" command.string"authorization", "sale"; defaults to "sale"
customer

The customer object

PaymentCustomersProductModel


redirect_url

A list of redirect urls used for the payment checkout page

SecupayTransactionProductDTORedirectUrl


contract

Contract id

string"PCT_" followed by 20 alphanumerical characters
opt_dataOptional data

SecupayTransactionProductDTOOptData


subscriptionSubscription allowing follow up payments, without passing all the data

SecupayTransactionProductDTOSubscription


demoIs transaction demo onlystring"True", "False"; defaults to #TODO
api_data

#TODO

SecupayTransactionProductDTOApiData


experienceClient experience

SecupayTransactionProductDTOExperience


Basket

Basket and SecupayBasketItem definitions stay the same as for SecupayTransactionProductModel.

PaymentCustomersProductModel

See PaymentCustomersProductModel section here for full definition.

SecupayTransactionProductDTORedirectUrl

A list of redirect urls used for the payment checkout page

'url_success' => 'string',
'url_failure' => 'string',
'url_push' => 'string'

SecupayTransactionProductDTORedirectUrl

A list of redirect urls used for the payment checkout page
propertydescriptiontypepossible values
url_success
After successfully entering the cash data of the payer is returned to this pagestringURL
url_failure
After canceling or on errors the payer will be redirected to this page and can select there an another payment method.stringURL
url_push
The secupay system will be send status change notifications to this URL.stringURL

SecupayTransactionProductDTOOptData

'has_accepted_disclaimer' => 'string'

SecupayTransactionProductDTOOptData

#TODO
propertydescriptiontypepossible values
has_accepted_disclaimer#TODOstring#TODO

SecupayTransactionProductDTOSubscription

'purpose' => 'string',
'id' => 'string'

SecupayTransactionProductDTOSubscription

Subscription allowing follow up payments, without passing all the data

propertydescriptiontypepossible value
purpose#TODOstringText
idSubscription idstringString of alphanumerical characters

SecupayTransactionProductDTOApiData

'language' => 'string'

SecupayTransactionProductDTOApiData

#TODO
propertydescriptiontypepossible values
languageCustomer languagestring#TODO

SecupayTransactionProductDTOExperience

'positive' => 'string',
'negative' => 'string'

SecupayTransactionProductDTOExperience

#TODO
propertydescriptiontypepossible values
positive#TODOstringInteger
negative#TODOstringInteger