Sample-creativemarkeplace: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
POSTransactionId: "TR-01-01-01", | POSTransactionId: "TR-01-01-01", | ||
Payee: "[email protected]", | Payee: "[email protected]", | ||
Total: | Total: 5, | ||
Comment: "Marketplace | Comment: "Marketplace commission: TR-01-01-01." | ||
}, | }, | ||
], | ], | ||
Items: [ | Items: [ | ||
{ | { | ||
Name: " | Name: "Beer mug", | ||
Description: " | Description: "Artisan beer mug, 1L, pottery ", | ||
Quantity: 1, | Quantity: 1, | ||
Unit: "db", | Unit: "db", | ||
UnitPrice: | UnitPrice: 50, | ||
ItemTotal: | ItemTotal: 50, | ||
SKU: "" | SKU: "" | ||
}, | }, | ||
Line 47: | Line 47: | ||
{ | { | ||
POSTransactionId: "fa-01-02", | POSTransactionId: "fa-01-02", | ||
Payee: " | Payee: "jeweler@example.com", | ||
Total: | Total: 30, | ||
//Immediately after crediting | //Immediately after crediting €30 to jeweler@example.com, €3 will be sent to the marketplace. | ||
PayeeTransactions: [ | PayeeTransactions: [ | ||
{ | { | ||
POSTransactionId: "TR-01-02-01", | POSTransactionId: "TR-01-02-01", | ||
Payee: "[email protected]", | Payee: "[email protected]", | ||
Total: | Total: 30, | ||
Comment: "Marketplace | Comment: "Marketplace commission: TR-01-02-01." | ||
}, | }, | ||
], | ], | ||
Items: [ | Items: [ | ||
{ | { | ||
Name: " | Name: "Necklace", | ||
Description: " | Description: "Hand made copper necklace with glass decor", | ||
Quantity: 1, | Quantity: 1, | ||
Unit: "db", | Unit: "db", | ||
UnitPrice: | UnitPrice: 30, | ||
ItemTotal: | ItemTotal: 30, | ||
SKU: "" | SKU: "" | ||
}, | }, |
Revision as of 16:47, 4 September 2017
Creative marketplace - C2C sample
Ez a példa egy olyan piacteret mutat be, ahol egy vásárló fizet több kézműves eladónak, akik a piactéren árulnak, és amiből a piactér részesedik 10-10%-ot.
This example is the input of v2 /Payment/Start API call for an online marketplace, where customers can shop creative crafts (eg. hand made jewelry) from different vendors and the marketplace receives a commission. The API call is initiated by the marketplace, as the facilitator.
API Input JSON
{
POSKey: "999FFDDA-04FF-333F-CCCC-345FCB555FFC",
PaymentType: "Immediate",
PaymentWindow: "00:30:00",
PaymentRequestId: "fa-01",
PayerHint: "[email protected]",
Locale: "en-US",
Currency: "EUR",
FundingSources: [
"All"
],
Transactions: [
{
POSTransactionId: "fa-01-01",
Payee: "[email protected]",
Total: 50,
//Immediately after crediting €50 to [email protected], €5 will be sent to the marketplace.
PayeeTransactions: [
{
POSTransactionId: "TR-01-01-01",
Payee: "[email protected]",
Total: 5,
Comment: "Marketplace commission: TR-01-01-01."
},
],
Items: [
{
Name: "Beer mug",
Description: "Artisan beer mug, 1L, pottery ",
Quantity: 1,
Unit: "db",
UnitPrice: 50,
ItemTotal: 50,
SKU: ""
},
]
},
{
POSTransactionId: "fa-01-02",
Payee: "[email protected]",
Total: 30,
//Immediately after crediting €30 to [email protected], €3 will be sent to the marketplace.
PayeeTransactions: [
{
POSTransactionId: "TR-01-02-01",
Payee: "[email protected]",
Total: 30,
Comment: "Marketplace commission: TR-01-02-01."
},
],
Items: [
{
Name: "Necklace",
Description: "Hand made copper necklace with glass decor",
Quantity: 1,
Unit: "db",
UnitPrice: 30,
ItemTotal: 30,
SKU: ""
},
]
}
]
}