Authorize a credit card payment. Funds will be held until the payment is voided or captured.
You must submit an orders API request to apply the payment to a check within five minutes of authorization, otherwise the payment will be automatically voided.
Payment must be captured within four days of authorization, otherwise the payment will be automatically voided. Capture occurs the evening after the order is fulfilled by the restaurant.
The authorization request, including encrypted credit card information and payment details.
The authorization request was processed. See the response for details.
The request was not valid. A required field may be missing.
The merchant (restaurant) does not exist.
An authorization request was already made for this payment UUID. Verify that you are generating unique payment UUIDs for each request. This can also occur if the same request is resubmitted, but the state has since been changed by another system (for example, voided on the POS).
The request failed validation. The structure is not correct. A message with more information is returned if using the certification environment.
Unexpected error
{- "cardNumberOrigin": "END_USER",
- "willSaveCard": true,
- "encryptedCardData": { },
- "amount": 0,
- "keyId": "string",
- "tipAmount": 0,
- "requestMetadata": {
- "partnerServiceInfo": {
- "instanceId": "string",
- "additionalInfo": "string"
}, - "localTransactionDate": "2019-08-24T14:15:22Z",
- "originIPAddr": "string",
- "cardFirst6": "string",
- "cardLast4": "string",
- "billingAddress": {
- "name": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "region": "string",
- "postalCode": "string",
- "country": "string"
}, - "deliveryAddress": {
- "name": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "region": "string",
- "postalCode": "string",
- "country": "string"
}, - "userAgent": "string",
- "guestIdentifier": "string",
- "guestEmail": "string",
- "appName": "string",
- "appVersion": "string"
}
}
{- "paymentState": "AUTHORIZED",
- "authorizationMetadata": {
- "localTransactionDate": "2019-08-24T14:15:22Z",
- "cardBrand": "string",
- "authorizationCode": "string",
- "last4": "string"
}, - "amount": { },
- "tipAmount": { },
- "denialReason": "string",
- "error": "string"
}