> For the complete documentation index, see [llms.txt](https://docs.play.cronos.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.play.cronos.org/readme-1/classes/structcom_1_1crypto_1_1game__sdk_1_1_crypto_com_payment_response.md).

# com::crypto::game\_sdk::CryptoComPaymentResponse

the subset of payment object from <https://pay-docs.crypto.com>

`#include <lib.rs.h>`

## Public Types

|                         | Name                                      |
| ----------------------- | ----------------------------------------- |
| using ::std::true\_type | [**IsRelocatable**](#using-isrelocatable) |

## Public Attributes

|                                                                           | Name                                                                                                                                                                                                                                                                |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ::[rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) | <p><a href="#variable-id"><strong>id</strong></a><br>uuid of the payment object</p>                                                                                                                                                                                 |
| ::[rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) | <p><a href="#variable-main-app-qr-code"><strong>main\_app\_qr\_code</strong></a><br>the base64 payload to be displayed as QR code that can be scanned by the main app</p>                                                                                           |
| ::[rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) | <p><a href="#variable-onchain-deposit-address"><strong>onchain\_deposit\_address</strong></a><br>if the on-chain payment is desired, this will have the cryptocurrency address that can be displayed as a QR code or put in a tx to be signed via WalletConnect</p> |
| ::[rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) | <p><a href="#variable-base-amount"><strong>base\_amount</strong></a><br>the amount in base denomination e.g.</p>                                                                                                                                                    |
| ::[rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) | <p><a href="#variable-currency"><strong>currency</strong></a><br>the 3-letter currency code</p>                                                                                                                                                                     |
| ::std::uint64\_t                                                          | <p><a href="#variable-expiration"><strong>expiration</strong></a><br>expiration time in unix timestamp (10 minutes)</p>                                                                                                                                             |
| ::[rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) | <p><a href="#variable-status"><strong>status</strong></a><br>the status of the payment</p>                                                                                                                                                                          |

## Public Types Documentation

### using IsRelocatable

```cpp
using com::crypto::game_sdk::CryptoComPaymentResponse::IsRelocatable =  ::std::true_type;
```

## Public Attributes Documentation

### variable id

```cpp
::rust::String id;
```

uuid of the payment object

### variable main\_app\_qr\_code

```cpp
::rust::String main_app_qr_code;
```

the base64 payload to be displayed as QR code that can be scanned by the main app

### variable onchain\_deposit\_address

```cpp
::rust::String onchain_deposit_address;
```

if the on-chain payment is desired, this will have the cryptocurrency address that can be displayed as a QR code or put in a tx to be signed via WalletConnect

### variable base\_amount

```cpp
::rust::String base_amount;
```

the amount in base denomination e.g.

for USD, it's cents (1 USD == 100 cents)

### variable currency

```cpp
::rust::String currency;
```

the 3-letter currency code

### variable expiration

```cpp
::std::uint64_t expiration;
```

expiration time in unix timestamp (10 minutes)

### variable status

```cpp
::rust::String status;
```

the status of the payment

***

Updated on 2023-01-11 at 18:25:18 +0800
