release_card
release_card Lets go of a hold made with authorize_card: nothing is taken and the card holder's bank frees the 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:
release_card(transaction_record_id)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| transaction_record_id | string | The id of the transaction record authorize_card made |
Returned Value:
| Type | Description |
|---|---|
| string | "OK", or an error message |
Examples
result = release_card(hold_record_id)