> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minestorecms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Payment

> Handles the payment creation process, including validation, checking for sales, handling virtual currency, and processing payments through various methods.



## OpenAPI

````yaml POST /payments/create
openapi: 3.0.0
info:
  title: MineStoreCMS REST API
  description: Documentation for MineStoreCMS Frontend REST API.
  version: 3.8.7
servers:
  - url: https://v3.minestorecms.com/api
    description: Example URL of Demo Server
security: []
tags: []
paths:
  /payments/create:
    post:
      tags:
        - payments
      summary: Create a new payment
      description: >-
        Handles the payment creation process, including validation, checking for
        sales, handling virtual currency, and processing payments through
        various methods.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                details:
                  type: object
                  properties:
                    fullname:
                      type: string
                      description: Full name of the user.
                    email:
                      type: string
                      format: email
                      description: Email address of the user.
                    address1:
                      type: string
                      description: First line of the address.
                    address2:
                      type: string
                      description: Second line of the address (optional).
                    city:
                      type: string
                      description: City of the user.
                    region:
                      type: string
                      description: Region or state of the user.
                    country:
                      type: string
                      description: Country of the user.
                    zipcode:
                      type: string
                      description: Zip code of the user.
                termsAndConditions:
                  type: boolean
                  description: Whether the user has accepted the terms and conditions.
                privacyPolicy:
                  type: boolean
                  description: Whether the user has accepted the privacy policy.
                paymentMethod:
                  type: string
                  description: Selected payment method.
                currency:
                  type: string
                  description: Currency for the payment.
      responses:
        '200':
          description: Payment successfully created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the payment creation was successful.
                  data:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Type of the response data (e.g., 'url').
                      url:
                        type: string
                        format: uri
                        description: >-
                          URL for the user to complete the payment, if
                          applicable.
        '401':
          description: (Unauthorized) Invalid or missing Access Token
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````