Sha256: d9474ab00d15479b094a4aa544f964b15dfbf900a6dbc2f9e5608f2cbe7808c4

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

# BudgeaClient::PaymentsApi

All URIs are relative to *https://demo.biapi.pro/2.0/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**payments_post**](PaymentsApi.md#payments_post) | **POST** /payments | Create and validate a payment request


# **payments_post**
> Payment payments_post(payment_data)

Create and validate a payment request

### Example
```ruby
# load the gem
require 'budgea_client'
# setup authorization
BudgeaClient.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = BudgeaClient::PaymentsApi.new

payment_data = BudgeaClient::PaymentRequest.new # PaymentRequest | 


begin
  #Create and validate a payment request
  result = api_instance.payments_post(payment_data)
  p result
rescue BudgeaClient::ApiError => e
  puts "Exception when calling PaymentsApi->payments_post: #{e}"
end
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **payment_data** | [**PaymentRequest**](PaymentRequest.md)|  | 

### Return type

[**Payment**](Payment.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
budgea_client-5.5.0 docs/PaymentsApi.md
budgea_client-5.4.0 docs/PaymentsApi.md