# ecommerce/basic\_payment

### What is it?

This is used to output payment fields in a basic payment form.

### Where to use?

You should include this on a basic payment form.

### How to use?

```liquid
{%- include 'ecommerce/basic_payment'
  amount: '500'
  currency: 'usd'
  id: '10'
-%}
```

| Parameter | Type    | Notes                                                                                                                                                        |
| --------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| amount    | Integer | The amount to be charged in cents/pence (e.g. 500 = $5.00)                                                                                                   |
| currency  | String  | The currency to charge the user                                                                                                                              |
| id        | Integer | The ID of the Payment Gateway to be used. If not included, then the system will output the Payment Gateway that you most recently updated in Siteglide Admin |


---

# 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://documentation.siteglide.com/ecommerce/get-started-ecommerce/basic-payment-forms/ecommerce-basic_payment.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.
