CodeSamples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 2: | Line 2: | ||
{{PageTitle|title= Sample API Calls}} | {{PageTitle|title= Sample API Calls}} | ||
{{NotificationBox|title=IMPORTANT|text= | {{NotificationBox|title=IMPORTANT|text=Don't try to save time by jumping directly to sample code. We know developers like to hack (we do, too), but a payment system requires discipline, so we advise to read the docs thoroughly.|color=#FF7A3D}} | ||
Below are API call samples for different payment scenarios. | Below are API call samples for different payment scenarios. | ||
Line 20: | Line 20: | ||
==Sharing Economy== | ==Sharing Economy== | ||
*[[sample-uber|Car sharing 'Uber' style - single service provider, facilitator commission]] | *[[sample-uber|Car sharing 'Uber' style - single service provider, facilitator commission]] | ||
{{NotificationBox|title=IMPORTANT|text=Do not copy paste these samples, because some sample parameters (such as POSKey) will not work in live environments! |color=#FF7A3D}} |
Revision as of 22:57, 8 September 2017
Sample API Calls
IMPORTANT
Don't try to save time by jumping directly to sample code. We know developers like to hack (we do, too), but a payment system requires discipline, so we advise to read the docs thoroughly.
Below are API call samples for different payment scenarios.
Traditional payment
Automatic payments
Marketplaces
- Marketplace for online classes - single seller, marketplace commission
- Creative marketplace - multiple sellers, marketplace commission
- Local producers' marketplace - multiple sellers, marketplace and agent commission
Sharing Economy
IMPORTANT
Do not copy paste these samples, because some sample parameters (such as POSKey) will not work in live environments!