All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
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 | |
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 | |
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\PaymentMethods[] getPaymentMethods($customer_id, $payment_name)
Get payment methods saved for a Customer on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$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[]
No authorization required
- 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');
$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[]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentModules getPaymentModules($page, $per_page)
Get payment gateways list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$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\PaymentModules
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentUrl getPaymentUrl($cart_id, $payment_name)
Get payment gateway URL to use in iframe
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$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\PaymentUrl
No authorization required
- 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');
$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[]
No authorization required
- 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');
$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[]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PaymentDetails1 preparePayment($cart_id, $payment_name, $ip_address)
Prepare payment on a payment gateway
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$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\PaymentDetails1
No authorization required
- 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');
$api_instance = new Kinow\Client\Api\PaymentModulesApi();
$customer_id = 789; // int |
$payment_name = "payment_name_example"; // string |
$payment_arguments = new \Kinow\Client\Model\PaymentArguments(); // \Kinow\Client\Model\PaymentArguments | 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\PaymentArguments | Payment arguments | |
ip_address | string | Filter by user IP | [optional] |
void (empty response body)
No authorization required
- 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');
$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)
No authorization required
- 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');
$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->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\PaymentArguments | Payment argument |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined