SmartCard.EndTransaction
------------------------

Ends transaction.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SmartCard](component_SmartCard.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "SmartCard.EndTransaction"; SmartCardContext; Disposition ) 

**MBS**( **"SmartCard.EndTransaction";** /\* Ends transaction. \*/  
**$SmartCardContext**; /\* The smartcard context reference number. \*/   
**$Disposition**) /\* Action to take on the card in the connected reader on close.  
Can be Eject, Leave, Reset or Unpower.e.g. "Eject" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SmartCardContext | The smartcard context reference number. | $SmartCardContext |
| Disposition | Action to take on the card in the connected reader on close.   Can be Eject, Leave, Reset or Unpower. | "Eject" |

### Result

Returns OK or error.

### Description

Ends transaction.  
Completes a previously declared transaction, allowing other applications to resume interactions with the card.  
### See also

- [SmartCard.BeginTransaction](SmartCardBeginTransaction.md)
- [SmartCard.CancelTransaction](SmartCardCancelTransaction.md)

This function checks for a license.

Created 13th June 2016 , last changed 19th June 2016

  
[SmartCard.Disconnect](SmartCardDisconnect.md) - [SmartCard.GetActiveProtocol](SmartCardGetActiveProtocol.md)

[HTML Version](SmartCardEndTransaction.shtml)