Sample-uber: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{PageTitle|title=Marketplace for online classes - C2C sample}} This example is the input of <span class="api-ver">v2</span> /Payment/Start API...") |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{PageTitle|title= | {{PageTitle|title=Car sharing 'Uber' style - C2C sample}} | ||
This example is the input of <span class="api-ver">v2</span> [[Payment-Start-v2|/Payment/Start]] API call for a car sharing 'Uber' style service, where passengers pay a fee for rides to drivers, and the app provider receives a fee. The API call is initiated by the app provider, as the facilitator. | This example is the input of <span class="api-ver">v2</span> [[Payment-Start-v2|/Payment/Start]] API call for a car sharing 'Uber' style service, where passengers pay a fee for rides to drivers, and the app provider receives a fee. The API call is initiated by the app provider, as the facilitator. |
Revision as of 21:12, 4 September 2017
Car sharing 'Uber' style - C2C sample
This example is the input of v2 /Payment/Start API call for a car sharing 'Uber' style service, where passengers pay a fee for rides to drivers, and the app provider receives a fee. The API call is initiated by the app provider, 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: "USD",
FundingSources: [
"All"
],
Transactions: [
{
POSTransactionId: "fa-01-01",
Payee: "[email protected]",
Total: 50,
//Immediately after crediting $50 to teacher, $5 will be sent to the app provider.
PayeeTransactions: [
{
POSTransactionId: "TR-01-01-01",
Payee: "[email protected]",
Total: 5,
Comment: "Car sharing commission: TR-01-01-01."
},
],
Items: [
{
Name: "Car sharing ride",
Description: "Ride from 23 Lucky road, Queens to 456 Broadway, Manhattan",
Quantity: 20,
Unit: "miles",
UnitPrice: 2.5,
ItemTotal: 50,
SKU: ""
},
]
}
]
}