All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
getCartPaymentModules | GET /carts/{cart_id}/payments | |
getPaymentMethods | GET /customers/{customer_id}/payments/{payment_name}/payment-methods | |
getPaymentMethodsWithIp | GET /customers/{customer_id}/payments/{payment_name}/payment-methods/{ip_address} | |
getPaymentModules | GET /payment-modules | |
getPaymentToken | GET /payment-modules/token/{token} | |
getPaymentUrl | GET /carts/{cart_id}/payments/{payment_name} | |
getPendingPayments | GET /customers/{customer_id}/payments/{payment_name}/pending | |
getPendingPaymentsWithIp | GET /customers/{customer_id}/payments/{payment_name}/pending/{ip_address} | |
preparePayment | POST /carts/{cart_id}/payments/{payment_name}/prepare | |
recurringPayment | POST /carts/{cart_id}/payments/{payment_name}/recurring | |
updatePaymentMethod | PUT /customers/{customer_id}/payments/{payment_name}/payment-method | |
validateFreeOrder | POST /carts/{cart_id}/validate-free-order | |
validatePayment | POST /carts/{cart_id}/payments/{payment_name}/validate |
\Kinow\Client\Model\PaymentModuleListResponse1 getCartPaymentModules($cart_id, $page, $per_page)
Get payment gateways list available for given cart
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$cart_id = 789; // int | Cart ID to fetch
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getCartPaymentModules($cart_id, $page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getCartPaymentModules: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | int | Cart ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] |
\Kinow\Client\Model\PaymentModuleListResponse1
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentMethods[] getPaymentMethods($customer_id, $payment_name)
Get payment methods saved for a Customer on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$customer_id = 789; // int |
$payment_name = "payment_name_example"; // string |
try {
$result = $api_instance->getPaymentMethods($customer_id, $payment_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPaymentMethods: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customer_id | int | ||
payment_name | string |
\Kinow\Client\Model\PaymentMethods[]
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentMethods[] getPaymentMethodsWithIp($customer_id, $payment_name, $ip_address)
Get payment methods saved for a Customer on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$customer_id = 789; // int |
$payment_name = "payment_name_example"; // string |
$ip_address = "ip_address_example"; // string | Filter by user IP
try {
$result = $api_instance->getPaymentMethodsWithIp($customer_id, $payment_name, $ip_address);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPaymentMethodsWithIp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customer_id | int | ||
payment_name | string | ||
ip_address | string | Filter by user IP |
\Kinow\Client\Model\PaymentMethods[]
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentModuleListResponse getPaymentModules($page, $per_page)
Get payment gateways list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getPaymentModules($page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPaymentModules: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | [optional] | |
per_page | int | [optional] |
\Kinow\Client\Model\PaymentModuleListResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentToken1 getPaymentToken($token)
Get payment token details
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$token = 56; // int | Token to fetch
try {
$result = $api_instance->getPaymentToken($token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPaymentToken: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | int | Token to fetch |
\Kinow\Client\Model\PaymentToken1
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentUrlResponse getPaymentUrl($cart_id, $payment_name)
Get payment gateway URL to use in iframe
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$cart_id = 789; // int | Cart ID to fetch
$payment_name = "payment_name_example"; // string | Payment gateway name
try {
$result = $api_instance->getPaymentUrl($cart_id, $payment_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPaymentUrl: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | int | Cart ID to fetch | |
payment_name | string | Payment gateway name |
\Kinow\Client\Model\PaymentUrlResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentDetails[] getPendingPayments($payment_name, $customer_id)
Get pending payments for a Customer on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$payment_name = "payment_name_example"; // string |
$customer_id = 789; // int |
try {
$result = $api_instance->getPendingPayments($payment_name, $customer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPendingPayments: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
payment_name | string | ||
customer_id | int |
\Kinow\Client\Model\PaymentDetails[]
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentDetails[] getPendingPaymentsWithIp($payment_name, $customer_id, $ip_address)
Get pending payments for a Customer on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$payment_name = "payment_name_example"; // string |
$customer_id = 789; // int |
$ip_address = "ip_address_example"; // string | Filter by user IP
try {
$result = $api_instance->getPendingPaymentsWithIp($payment_name, $customer_id, $ip_address);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->getPendingPaymentsWithIp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
payment_name | string | ||
customer_id | int | ||
ip_address | string | Filter by user IP |
\Kinow\Client\Model\PaymentDetails[]
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentDetailsResponse preparePayment($cart_id, $payment_name, $ip_address)
Prepare payment on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$cart_id = 789; // int | Cart ID to fetch
$payment_name = "payment_name_example"; // string | Payment gateway name
$ip_address = "ip_address_example"; // string | Use IP address in payment process
try {
$result = $api_instance->preparePayment($cart_id, $payment_name, $ip_address);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->preparePayment: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | int | Cart ID to fetch | |
payment_name | string | Payment gateway name | |
ip_address | string | Use IP address in payment process | [optional] |
\Kinow\Client\Model\PaymentDetailsResponse
- Content-Type: Not defined
- Accept: Not defined
recurringPayment($cart_id, $payment_name, $payment_argument)
Validate recurring payment on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$cart_id = 789; // int | Cart ID to fetch
$payment_name = "payment_name_example"; // string | Payment gateway name
$payment_argument = new \Kinow\Client\Model\PaymentArguments(); // \Kinow\Client\Model\PaymentArguments | Payment argument
try {
$api_instance->recurringPayment($cart_id, $payment_name, $payment_argument);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->recurringPayment: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | int | Cart ID to fetch | |
payment_name | string | Payment gateway name | |
payment_argument | \Kinow\Client\Model\PaymentArguments | Payment argument |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
updatePaymentMethod($customer_id, $payment_name, $payment_arguments, $ip_address)
Update payment method for a Customer on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$customer_id = 789; // int |
$payment_name = "payment_name_example"; // string |
$payment_arguments = new \Kinow\Client\Model\UpdatePaymentRequest(); // \Kinow\Client\Model\UpdatePaymentRequest | Payment arguments
$ip_address = "ip_address_example"; // string | Filter by user IP
try {
$api_instance->updatePaymentMethod($customer_id, $payment_name, $payment_arguments, $ip_address);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->updatePaymentMethod: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customer_id | int | ||
payment_name | string | ||
payment_arguments | \Kinow\Client\Model\UpdatePaymentRequest | Payment arguments | |
ip_address | string | Filter by user IP | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
validateFreeOrder($cart_id)
Validate cart without payment method (only for carts with a total of 0)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$cart_id = 789; // int | Cart ID to validate
try {
$api_instance->validateFreeOrder($cart_id);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->validateFreeOrder: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | int | Cart ID to validate |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
validatePayment($cart_id, $payment_name, $payment_argument)
Validate payment on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$cart_id = 789; // int | Cart ID to fetch
$payment_name = "payment_name_example"; // string | Payment gateway name
$payment_argument = new \Kinow\Client\Model\PaymentArgumentsResponse(); // \Kinow\Client\Model\PaymentArgumentsResponse | Payment argument
try {
$api_instance->validatePayment($cart_id, $payment_name, $payment_argument);
} catch (Exception $e) {
echo 'Exception when calling PaymentModulesApi->validatePayment: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | int | Cart ID to fetch | |
payment_name | string | Payment gateway name | |
payment_argument | \Kinow\Client\Model\PaymentArgumentsResponse | Payment argument |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined