All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| quotePaymentMethodManagementV1GetGet | GET /V1/carts/{cartId}/selected-payment-method | |
| quotePaymentMethodManagementV1GetGet_0 | GET /V1/carts/mine/selected-payment-method | |
| quotePaymentMethodManagementV1GetListGet | GET /V1/carts/{cartId}/payment-methods | |
| quotePaymentMethodManagementV1GetListGet_0 | GET /V1/carts/mine/payment-methods | |
| quotePaymentMethodManagementV1SetPut | PUT /V1/carts/{cartId}/selected-payment-method | |
| quotePaymentMethodManagementV1SetPut_0 | PUT /V1/carts/mine/selected-payment-method |
\Krak\MagentoApiClient\Model\QuoteDataPaymentInterface quotePaymentMethodManagementV1GetGet($cartId)
Returns the payment method for a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\QuotePaymentMethodManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$cartId = 56; // int | The cart ID.
try {
$result = $apiInstance->quotePaymentMethodManagementV1GetGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuotePaymentMethodManagementV1Api->quotePaymentMethodManagementV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The cart ID. |
\Krak\MagentoApiClient\Model\QuoteDataPaymentInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataPaymentInterface quotePaymentMethodManagementV1GetGet_0()
Returns the payment method for a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\QuotePaymentMethodManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->quotePaymentMethodManagementV1GetGet_0();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuotePaymentMethodManagementV1Api->quotePaymentMethodManagementV1GetGet_0: ', $e->getMessage(), PHP_EOL;
}
?>This endpoint does not need any parameter.
\Krak\MagentoApiClient\Model\QuoteDataPaymentInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataPaymentMethodInterface[] quotePaymentMethodManagementV1GetListGet($cartId)
Lists available payment methods for a specified shopping cart. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See http://devdocs.magento.com/codelinks/attributes.html#PaymentMethodManagementInterface to determine which call to use to get detailed information about all attributes for an object.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\QuotePaymentMethodManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$cartId = 56; // int | The cart ID.
try {
$result = $apiInstance->quotePaymentMethodManagementV1GetListGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuotePaymentMethodManagementV1Api->quotePaymentMethodManagementV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The cart ID. |
\Krak\MagentoApiClient\Model\QuoteDataPaymentMethodInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataPaymentMethodInterface[] quotePaymentMethodManagementV1GetListGet_0()
Lists available payment methods for a specified shopping cart. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See http://devdocs.magento.com/codelinks/attributes.html#PaymentMethodManagementInterface to determine which call to use to get detailed information about all attributes for an object.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\QuotePaymentMethodManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->quotePaymentMethodManagementV1GetListGet_0();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuotePaymentMethodManagementV1Api->quotePaymentMethodManagementV1GetListGet_0: ', $e->getMessage(), PHP_EOL;
}
?>This endpoint does not need any parameter.
\Krak\MagentoApiClient\Model\QuoteDataPaymentMethodInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string quotePaymentMethodManagementV1SetPut($cartId, $quotePaymentMethodManagementV1SetPutBody)
Adds a specified payment method to a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\QuotePaymentMethodManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$cartId = 56; // int | The cart ID.
$quotePaymentMethodManagementV1SetPutBody = new \Krak\MagentoApiClient\Model\QuotePaymentMethodManagementV1SetPutBody(); // \Krak\MagentoApiClient\Model\QuotePaymentMethodManagementV1SetPutBody |
try {
$result = $apiInstance->quotePaymentMethodManagementV1SetPut($cartId, $quotePaymentMethodManagementV1SetPutBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuotePaymentMethodManagementV1Api->quotePaymentMethodManagementV1SetPut: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The cart ID. | |
| quotePaymentMethodManagementV1SetPutBody | \Krak\MagentoApiClient\Model\QuotePaymentMethodManagementV1SetPutBody | [optional] |
string
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string quotePaymentMethodManagementV1SetPut_0($quotePaymentMethodManagementV1SetPutBody)
Adds a specified payment method to a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\QuotePaymentMethodManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$quotePaymentMethodManagementV1SetPutBody = new \Krak\MagentoApiClient\Model\QuotePaymentMethodManagementV1SetPutBody1(); // \Krak\MagentoApiClient\Model\QuotePaymentMethodManagementV1SetPutBody1 |
try {
$result = $apiInstance->quotePaymentMethodManagementV1SetPut_0($quotePaymentMethodManagementV1SetPutBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuotePaymentMethodManagementV1Api->quotePaymentMethodManagementV1SetPut_0: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| quotePaymentMethodManagementV1SetPutBody | \Krak\MagentoApiClient\Model\QuotePaymentMethodManagementV1SetPutBody1 | [optional] |
string
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]