Stakeholder Payment
Passing stakeholder shares works very similar to passing articles. The stakeholder payment is passed as a special basket item.
secupayCheckout.setBasket([
// some articles first, then our stakeholder share ...
{
id: 1000,
itemType:
"stakeholder_payment"
,
name:
"stakeholder_payment"
,
contractId:
"GCR_yyy"
,
price: 73
}
]}
Each stakeholder is a JavaScript object in the basket, having these properties:
item type for stakheolder payment;
contract ID of the payee;
the amount of this share.
You can also pass multiple stakeholder shares.
Monetary amounts are expressed in the smallest currency unit (e. g. Euro Cent). Our example above shows a stakeholder share of €0.73.
Detailed description of the objects for the basket items:
Attribute |
Type |
Description |
id |
bigint |
Optional. Item ID to manage the item later. |
itemType |
string |
Always "stakeholder_payment". |
contractId |
string |
The contract ID of the payee. The share will be paid out to this contract. |
price |
bigint |
The amount of the share in the minor currency unit. If you pass a value of 73 for a order in Euros, this means 73 Euro Cents, or €0.73. |