CodeSamples: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
mNo edit summary
 
(15 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{PageTitle|title= Sample API Calls}}
{{PageTitle|title= Sample API Calls}}
{{NotificationBox|title=NOTE|text=We know developers like to hack and start with sample code (we do, too). Please save time by reading the Getting Started section!|color=#1993c7}}
==Before you start coding==
*[[Getting_started|Getting started - overview of Barion payments]]


Below are API call samples for different payment scenarios.


==Marketplaces==
Below are API call samples for different payment scenarios.
 
==Traditional payment==
*[[sample-electronicsshop|Electronics shop]]
*[[sample-electronicsshop|Electronics shop]]
==Automatic payments==
*[[sample-oneclickpayment|Electronics shop with one click payment]]
*[[sample-monthlypayment|Online TV with monthly subscription]]


==Marketplaces==
==Marketplaces==
*[[sample-onlineclass|Marketplace for online classes]]
*[[sample-onlineclass|Marketplace for online classes - single seller, marketplace commission]]
*[[sample-creativemarkeplace|Creative marketplace]]
*[[sample-creativemarkeplace|Creative marketplace - multiple sellers, marketplace commission]]
*[[sample-localmarkeplace|Local producers' marketplace  - multiple sellers, marketplace and agent commission]]
 
==Sharing Economy==
*[[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}}
{{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}}

Latest revision as of 15:31, 22 December 2018

Sample API Calls

NOTE
We know developers like to hack and start with sample code (we do, too). Please save time by reading the Getting Started section!

Before you start coding


Below are API call samples for different payment scenarios.

Traditional payment

Automatic payments

Marketplaces

Sharing Economy


IMPORTANT
Do not copy paste these samples, because some sample parameters (such as POSKey) will not work in live environments!