SecupayTransactionProductDTO
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 |
|||
property |
description |
type |
possible values |
amount |
Total amount of payment in cents (or the smallest cash unit of the relevant currency) |
string |
Integer |
currency |
ISO 4217 code of currency, eg EUR for Euro. |
string |
ISO 4217 code of currency |
purpose |
The purpose of the payment. This is the later assignment of the payment is for example on the account statement of the buyer. |
string |
Text |
order_id |
Specifying an order number. Depending on the contract setting, this must be unique for each payment. |
string |
Up to user of API |
basket |
A list of items that are being purchased. |
SecupayBasketItem[] |
SecupayBasketItem |
accrual |
Indicates whether the payment is locked for pay-out (TRUE) or not (FALSE). Standard value here is FALSE. |
bool |
True/False; default False |
payment_action |
Specifies 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_data |
Optional data |
SecupayTransactionProductDTOOptData |
|
subscription |
Subscription allowing follow up payments, without passing all the data |
SecupayTransactionProductDTOSubscription |
|
demo |
Is transaction demo only |
string |
"True", "False"; defaults to #TODO |
api_data |
#TODO |
SecupayTransactionProductDTOApiData |
|
experience |
Client 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 |
|||
property |
description |
type |
possible values |
url_success |
After successfully entering the cash data of the payer is returned to this page |
string |
URL |
url_failure |
After canceling or on errors the payer will be redirected to this page and can select there an another payment method. |
string |
URL |
url_push |
The secupay system will be send status change notifications to this URL. |
string |
URL |
SecupayTransactionProductDTOOptData
'has_accepted_disclaimer'
=>
'string'
SecupayTransactionProductDTOOptData |
|||
#TODO |
|||
property |
description |
type |
possible values |
has_accepted_disclaimer |
#TODO |
string |
#TODO |
SecupayTransactionProductDTOSubscription
'purpose'
=>
'string'
,
'id'
=>
'string'
SecupayTransactionProductDTOSubscription |
|||
Subscription allowing follow up payments, without passing all the data |
|||
property |
description |
type |
possible value |
purpose |
#TODO |
string |
Text |
id |
Subscription id |
string |
String of alphanumerical characters |
SecupayTransactionProductDTOApiData
'language'
=>
'string'
SecupayTransactionProductDTOApiData |
|||
#TODO |
|||
property |
description |
type |
possible values |
language |
Customer language |
string |
#TODO |
SecupayTransactionProductDTOExperience
'positive'
=>
'string'
,
'negative'
=>
'string'
SecupayTransactionProductDTOExperience |
|||
#TODO |
|||
property |
description |
type |
possible values |
positive |
#TODO |
string |
Integer |
negative |
#TODO |
string |
Integer |