Skip to content

Commit

Permalink
Added transactionOption in Json example
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirardelean authored Apr 25, 2024
1 parent b3e3905 commit d80f0b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ In the example bellow the total amount is split between two merchants. Please no

**Split schema item parameters validation**

**Note!** You can validate your JSON using any validator and the Twispay transactionOption validation schema, which you can find here: [https://secure-stage.twispay.com/schema/transactionOption/transactionOption.schema.json](https://secure-stage.twispay.com/schema/transactionOption/transactionOption.schema.json)

| **Name** | **Type** | **Details** |
| ------------------------------ | --------- | ------------------------------------------------------------ |
| transactionOption.splitPayment.splitSchema[0].siteId | integer | merchant site Id |
Expand Down Expand Up @@ -383,6 +385,22 @@ FORM;
}
},
"cardTransactionMode": "authAndCapture",
"transactionOption" : {
"splitPayment": {
"splitSchema": [
{
"siteId": 1,
"amount": 2190.0,
"description": "split 1",
},
{
"siteId": 2,
"amount": 4.98,
"description": "split 2",
}
]
},
},
"cardId": 1,
"invoiceEmail": "[email protected]",
"backUrl": "http://example.com",
Expand Down

0 comments on commit d80f0b7

Please sign in to comment.