CodeSamples: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==== Oktató piactér ==== Ez a példa egy olyan piacteret mutat be, ahol egy diák fizet a tanárnak azonnali fizetéssel, amiből a piactér részesedik. '''Bemenet''' <sou...") |
|||
Line 1: | Line 1: | ||
==== | ==== C2C Online training marketplace ==== | ||
Ez a példa egy olyan piacteret mutat be, ahol egy diák fizet a tanárnak azonnali fizetéssel, amiből a piactér részesedik. | Ez a példa egy olyan piacteret mutat be, ahol egy diák fizet a tanárnak azonnali fizetéssel, amiből a piactér részesedik. | ||
This example is the input of Payment/Start API call for an online marketplace, where students pay a fee for online classes to teachers, and the marketplace receives a fee. The API call is initiated by the marketplace, as the facilitator. | |||
'''Bemenet''' | '''Bemenet''' | ||
Line 10: | Line 11: | ||
PaymentRequestId: "fa-01", | PaymentRequestId: "fa-01", | ||
PayerHint: "[email protected]", | PayerHint: "[email protected]", | ||
Locale: " | Locale: "en-US", | ||
Currency: " | Currency: "EUR", | ||
FundingSources: [ | FundingSources: [ | ||
"All" | "All" | ||
Line 19: | Line 20: | ||
POSTransactionId: "fa-01-01", | POSTransactionId: "fa-01-01", | ||
Payee: "[email protected]", | Payee: "[email protected]", | ||
Total: | Total: 50, | ||
// | //Immediately after crediting €50 to teacher, €5 will be sent to the marketplace. | ||
PayeeTransactions: [ | PayeeTransactions: [ | ||
{ | { | ||
POSTransactionId: "TR-01-01-01", | POSTransactionId: "TR-01-01-01", | ||
Payee: "[email protected]", | Payee: "[email protected]", | ||
Total: | Total: 5, | ||
Comment: "Marketplace facilitation fee: TR-01-01-01." | Comment: "Marketplace facilitation fee: TR-01-01-01." | ||
}, | }, | ||
Line 32: | Line 33: | ||
{ | { | ||
Name: "English lesson", | Name: "English lesson", | ||
Description: " | Description: "Advanced Business English lesson from native speaker", | ||
Quantity: | Quantity: 2, | ||
Unit: "hour", | Unit: "hour", | ||
UnitPrice: | UnitPrice: 25, | ||
ItemTotal: | ItemTotal: 50, | ||
SKU: "" | SKU: "ENG-ADV-NTV" | ||
}, | }, | ||
] | ] |
Revision as of 15:25, 4 September 2017
C2C Online training marketplace
Ez a példa egy olyan piacteret mutat be, ahol egy diák fizet a tanárnak azonnali fizetéssel, amiből a piactér részesedik. This example is the input of Payment/Start API call for an online marketplace, where students pay a fee for online classes to teachers, and the marketplace receives a fee. The API call is initiated by the marketplace, as the facilitator.
Bemenet
{
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 teacher, €5 will be sent to the marketplace.
PayeeTransactions: [
{
POSTransactionId: "TR-01-01-01",
Payee: "[email protected]",
Total: 5,
Comment: "Marketplace facilitation fee: TR-01-01-01."
},
],
Items: [
{
Name: "English lesson",
Description: "Advanced Business English lesson from native speaker",
Quantity: 2,
Unit: "hour",
UnitPrice: 25,
ItemTotal: 50,
SKU: "ENG-ADV-NTV"
},
]
}
]
}
Több szereplős piactér
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.
Bemenet
{
POSKey: "999FFDDA-04FF-333F-CCCC-345FCB555FFC",
PaymentType: "Immediate",
PaymentWindow: "00:30:00",
PaymentRequestId: "fa-01",
PayerHint: "[email protected]",
Locale: "hu-HU",
Currency: "HUF",
FundingSources: [
"All"
],
Transactions: [
{
POSTransactionId: "fa-01-01",
Payee: "[email protected]",
Total: 5000,
//Immediately after crediting 5000 Ft to [email protected], 500 Ft will be sent to the marketplace.
PayeeTransactions: [
{
POSTransactionId: "TR-01-01-01",
Payee: "[email protected]",
Total: 500,
Comment: "Marketplace facilitation fee: TR-01-01-01."
},
],
Items: [
{
Name: "Görbe bögre",
Description: "Kézműves görbe bögre, 2dl, kerámia ",
Quantity: 1,
Unit: "db",
UnitPrice: 5000,
ItemTotal: 5000,
SKU: ""
},
]
},
{
POSTransactionId: "fa-01-02",
Payee: "[email protected]",
Total: 3000,
//Immediately after crediting 3000 Ft to [email protected], 300 Ft will be sent to the marketplace.
PayeeTransactions: [
{
POSTransactionId: "TR-01-02-01",
Payee: "[email protected]",
Total: 300,
Comment: "Marketplace facilitation fee: TR-01-02-01."
},
],
Items: [
{
Name: "Bugylibicska",
Description: "Fa nyelű bicska, 8 cm pengével, bőr tokkal ",
Quantity: 1,
Unit: "db",
UnitPrice: 3000,
ItemTotal: 3000,
SKU: ""
},
]
}
]
}