Skip to content

API Reference

Kiss Áron edited this page Jan 25, 2019 · 1 revision

Members

defaults

Default values to call the Barion API with.

Functions

Barion(options)

Initializes a Barion object, that represents a merchant with a given POSKey.

defaults

Default values to call the Barion API with.

Kind: global variable

Barion(options)

Initializes a Barion object, that represents a merchant with a given POSKey.

Kind: global function
Author: Kiss, Aron <[email protected]>
Params

  • options Object - Default values for Barion API requests.
    • .Environment String - The Barion environment to use ('test' or 'prod'). (default: 'test')
    • .FundingSources Array.<String> - The default funding sources. (default: [ 'All' ])
    • .GuestCheckOut Boolean - Indicates if guest checkout is enabled. (default: true)
    • .Locale String - Localization of Barion GUI. (default: 'hu-HU')
    • .Currency String - Currency to use. (default: 'HUF')

barion.startPayment(options, [callback])

Starts a new payment in Barion, with the given options.

Kind: instance method of Barion
See: Barion API Documentation
Params

  • options Object - Options that are required to start new payment.
  • [callback] function - Callback that handles the response.

barion.getPaymentState(options, [callback])

Gets the state of a payment from Barion.

Kind: instance method of Barion
See: Barion API Documentation
Params

  • options Object - Options that are required to get payment state.
  • [callback] function - Callback that handles the response.

barion.finishReservation(options, [callback])

Finalizes a pending reservation in the Barion system.

Kind: instance method of Barion
See: Barion API Documentation
Params

  • options Object - Options that are required to finish the reservation.
  • [callback] function - Callback that handles the response.

barion.refundPayment(options, [callback])

Refunds a payment in Barion.

Kind: instance method of Barion
See: Barion API Documentation
Params

  • options Object - Options that are required to refund payment.
  • [callback] function - Callback that handles the response.

barion.bankTransfer(options, [callback])

Sends money out of the Barion system via bank transfer.

Kind: instance method of Barion
See: Barion API Documentation
Params

  • options Object - Options that are required to send money to bank account.
  • [callback] function - Callback that handles the response.

barion.barionTransfer(options, [callback])

Sends money between accounts in Barion.

Kind: instance method of Barion
See: Barion API Documentation
Params

  • options Object - Options that are required to send money to Barion user.
  • [callback] function - Callback that handles the response.