# Fragments (SDK)

Fragments is our ultimate toolkit to enable merchants to offer world-class credit card checkout experience.

### Fragments all-in-one

you can use our Fragments all-in-one version to display your checkout directly in your website with very low effort required. Fragments will handle the whole experience with all the possible scenarios: displaying installments, handling 3DS challenges, remembering payer's card and performing card validations.

Additionally, you can highly customize the frontend elements to math your site's styles, blending our frontend component naturally in your website.\
All this perks will remaining a fully PCI compliant integration.

<figure><img src="/files/TQ7sT5i8w0F6ae8J5jWX" alt="" width="375"><figcaption></figcaption></figure>

### Fragments Lite

In case you want to **build your own credit card checkout components in the frontend**, but without being PCI Compliant you can still opt for our Fragments SDK.&#x20;

You will need to send to our frontend component the card details in order to generate a token.

That token will contain encrypted information about the credit card that only our side can decrypt.\
You should use the token to charge that deposit.

<figure><img src="/files/tS78Bw1YqoW5sAdkWUbk" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}

## `card_token` expiration

Please note that the token created by the Fragments SDK will expire after 10 minutes.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.onekeypayments.com/guides/deposits/solutions/fragments-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
