create_payment
Initiate a payment transaction by specifying intent, payer details, and amount. Accepts credit card data and currency details for processing.
Instructions
Create a payment
Input Schema
Name | Required | Description | Default |
---|---|---|---|
intent | Yes | ||
payer | Yes | ||
transactions | Yes |
Input Schema (JSON Schema)
{
"properties": {
"intent": {
"type": "string"
},
"payer": {
"properties": {
"funding_instruments": {
"items": {
"properties": {
"credit_card": {
"properties": {
"cvv2": {
"type": "string"
},
"expire_month": {
"type": "number"
},
"expire_year": {
"type": "number"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"number": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
},
"payment_method": {
"type": "string"
}
},
"required": [
"payment_method"
],
"type": "object"
},
"transactions": {
"items": {
"properties": {
"amount": {
"properties": {
"currency": {
"type": "string"
},
"total": {
"type": "string"
}
},
"required": [
"total",
"currency"
],
"type": "object"
},
"description": {
"type": "string"
}
},
"required": [
"amount"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"intent",
"payer",
"transactions"
],
"type": "object"
}