-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added transactionOption in Json example
- Loading branch information
1 parent
b3e3905
commit d80f0b7
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | | ||
|
@@ -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", | ||
|