API reference
PaymentIntentInput
The PaymentIntentInput input object.
Kind: Input objects
Input fields
| Name | Type | Description |
|---|---|---|
tipAmount |
Int53! |
|
totalAmount |
Int53! |
|
vatAmount |
Int53! |
|
callbackUrl |
String |
If you want to have the PaymentIntent id in the callback url, you can use "{PAYMENT_INTENT_ID}" which will be replaced with the actual id. |
employeeId |
ID |
The Employee that placed the order, when placing an order from a Till while being logged in as an Employee Required permission: RestaurantWrite |
deviceLocation |
CoordinatesInput |
The location of the device that placed the order. |
idempotencyKey |
String! |
An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. |
items |
[PaymentIntentItemInput!] |
If this payment is for some specific items, you can pass them here. |
metadata |
JSONObject |
Any data passed in here will be returned as is when querying for it later. The server never acts upon the data in here. |
paymentMethodId |
ID |
MANDATORY: This field will be mandatory in the future, so make sure that you always pass it in. |
paymentProvider |
PaymentProvider |
DEPRECATED: Use the 'paymentMethodId' field instead. |
posTerminalId |
ID |
The terminal that the card payment should be made on. This is only applicable if using a payment provider that uses physical card terminals. Required permission: RestaurantWrite |
stripePaymentMethod |
StripePaymentMethod |
Optionally restrict Stripe payments to a specific payment method. |
tillId |
ID |
The Till this order was placed from Required permission: RestaurantWrite |