# Magento2\CheckoutPaymentInformationManagementV1Api

All URIs are relative to https://magento2.talisman-innovations.com/rest/default.

Method | HTTP request | Description
------------- | ------------- | -------------
[**checkoutPaymentInformationManagementV1GetPaymentInformationGet()**](CheckoutPaymentInformationManagementV1Api.md#checkoutPaymentInformationManagementV1GetPaymentInformationGet) | **GET** /V1/carts/mine/payment-information | 
[**checkoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPost()**](CheckoutPaymentInformationManagementV1Api.md#checkoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPost) | **POST** /V1/carts/mine/payment-information | 
[**checkoutPaymentInformationManagementV1SavePaymentInformationPost()**](CheckoutPaymentInformationManagementV1Api.md#checkoutPaymentInformationManagementV1SavePaymentInformationPost) | **POST** /V1/carts/mine/set-payment-information | 


## `checkoutPaymentInformationManagementV1GetPaymentInformationGet()`

```php
checkoutPaymentInformationManagementV1GetPaymentInformationGet(): \Magento2\Model\CheckoutDataPaymentDetailsInterface
```



Get payment information

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Magento2\Api\CheckoutPaymentInformationManagementV1Api(
    // 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()
);

try {
    $result = $apiInstance->checkoutPaymentInformationManagementV1GetPaymentInformationGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutPaymentInformationManagementV1Api->checkoutPaymentInformationManagementV1GetPaymentInformationGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**\Magento2\Model\CheckoutDataPaymentDetailsInterface**](../Model/CheckoutDataPaymentDetailsInterface.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `*/*`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `checkoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPost()`

```php
checkoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPost($checkout_payment_information_management_v1_save_payment_information_and_place_order_post_body): int
```



Set payment information and place order for a specified cart.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Magento2\Api\CheckoutPaymentInformationManagementV1Api(
    // 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()
);
$checkout_payment_information_management_v1_save_payment_information_and_place_order_post_body = new \Magento2\Model\CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest(); // \Magento2\Model\CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest

try {
    $result = $apiInstance->checkoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPost($checkout_payment_information_management_v1_save_payment_information_and_place_order_post_body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutPaymentInformationManagementV1Api->checkoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **checkout_payment_information_management_v1_save_payment_information_and_place_order_post_body** | [**\Magento2\Model\CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest**](../Model/CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest.md)|  | [optional]

### Return type

**int**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `*/*`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `checkoutPaymentInformationManagementV1SavePaymentInformationPost()`

```php
checkoutPaymentInformationManagementV1SavePaymentInformationPost($checkout_payment_information_management_v1_save_payment_information_post_body): int
```



Set payment information for a specified cart.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Magento2\Api\CheckoutPaymentInformationManagementV1Api(
    // 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()
);
$checkout_payment_information_management_v1_save_payment_information_post_body = new \Magento2\Model\CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest(); // \Magento2\Model\CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest

try {
    $result = $apiInstance->checkoutPaymentInformationManagementV1SavePaymentInformationPost($checkout_payment_information_management_v1_save_payment_information_post_body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutPaymentInformationManagementV1Api->checkoutPaymentInformationManagementV1SavePaymentInformationPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **checkout_payment_information_management_v1_save_payment_information_post_body** | [**\Magento2\Model\CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest**](../Model/CheckoutPaymentInformationManagementV1SavePaymentInformationAndPlaceOrderPostRequest.md)|  | [optional]

### Return type

**int**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `*/*`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
