capture_card
capture_card Takes the money of a hold made with authorize_card (all of it, or a smaller amount). Needs a Stripe payment resource.
Runs on: the server only. The statement that calls it runs on the server, and its result is a server-side value: the server keeps it, the device never writes it, and it is copied to the device only when a device statement reads it.
Format:
capture_card(transaction_record_id [, amount])
Parameters:
| Parameter | Type | Description |
|---|---|---|
| transaction_record_id | string | The id of the transaction record authorize_card made |
| amount | number |  [Optional]A smaller amount to take instead of the whole hold |
Returned Value:
| Type | Description |
|---|---|
| string | "OK", or an error message |
Examples
result = capture_card(hold_record_id)