Skip to main content
OPTIONS
Check available payment methods

Authorizations

Authorization
string
header
required

Basic authentication

Body

application/json
bangoUserId
string
required

The Bango User ID of the user purchasing the item. Required to allow for per-user payment methods, and to check whether the user is permitted to purchase the item.

Example:

"987654321"

paymentItems
object[]
required

The item to be purchased. See Bango Payment API / API reference / Transaction Payment Items structure for information about this structure. Required to check whether the user is permitted to purchase the item, and to to check whether the prices are supported price points for the payment provider.

paymentMethods
string[]

Payment method type strings. If specified, defines the subset of supported payment methods you would like the Bango Platform to consider including in the response. If omitted, or if empty, the Bango Platform considers all supported payment methods. The currently supported payment method type strings are OPERATORBILLING and INTERNET.

externalTransactionId
string

Your own unique, persistent transaction ID, if you have one. This helps reconciliation processes. Required to use the Bango Platform idempotency feature.

Example:

"my-tx-id-12345"

extensionData
object

Additional data related to the transaction.

Response

Payment methods successfully identified | Testing - Prefer: status=200

responseCode
string
required
Example:

"OK"

responseMessage
string
required
Example:

"Success."

availablePaymentMethods
object[]

An array of objects, where each object has a number of properties. - type is a valid payment method type string, for example OPERATORBILLING - key is an identifier for the payment provider - description is a string you can show in the store's user interface to describe the payment method - parameters is an object of parameters applicable to the payment provider The same value of type may appear more than once in the array, in this case, the value of key distinguishes the different methods. If paymentMethods was included in the request, then type is always one of the strings specified in that array.