POST
/
payments
/
create
curl --request POST \
  --url https://v3.minestorecms.com/api/payments/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "details": {
    "fullname": "<string>",
    "email": "jsmith@example.com",
    "address1": "<string>",
    "address2": "<string>",
    "city": "<string>",
    "region": "<string>",
    "country": "<string>",
    "zipcode": "<string>"
  },
  "termsAndConditions": true,
  "privacyPolicy": true,
  "paymentMethod": "<string>",
  "currency": "<string>"
}'
{
  "success": true,
  "data": {
    "type": "<string>",
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
details
object
termsAndConditions
boolean

Whether the user has accepted the terms and conditions.

privacyPolicy
boolean

Whether the user has accepted the privacy policy.

paymentMethod
string

Selected payment method.

currency
string

Currency for the payment.

Response

200
application/json
Payment successfully created.
success
boolean

Indicates if the payment creation was successful.

data
object