The following are the examples of Gatekeeper constructs used in creating the following tokens.
![]() | Important |
|---|---|
The values used in the GateKeeper construct examples are sample values only. Do not use these values in your application. |
Example : Single use token
This GateKeeper construct creates a single use sender token.
MyRole == 'Sender' orSay 'Role does not match'; TransactionAmount == 'USD 0.5' orSay 'Transaction amount not equal to accepted value'; TransactionTimestamp <= '2008-10-289T10:41-0700' orSay 'TransactionTimestamp used after validity'; string PaymentMethod := 'abt';
Example : Multi use token
This GateKeeper construct creates a multi use sender token.
MyRole == 'Sender' orSay 'Role does not match'; string PaymentMethod := 'abt'; TransactionTimestamp <= '2008-10-284T05:22-0700' orSay 'TransactionTimestamp used after validity'; string MyTokenUsageLimit1Type := 'Amount'; money MyTokenUsageLimit1 := 'USD 100'; duration MyTokenUsageLimit2Period := '1 months'; string MyTokenUsageLimit2Type := 'Count'; integer MyTokenUsageLimit2 := 5;
Example : Recurring token
This GateKeeper construct creates a recurring sender token.
MyRole == 'Sender' orSay 'Role does not match'; string PaymentMethod := 'abt'; duration MyTokenUsageLimit1Period := '2 months'; string MyTokenUsageLimit1Type := 'Amount'; TransactionTimestamp <= '2008-10-284T05:22-0700' orSay 'TransactionTimestamp used after validity'; money MyTokenUsageLimit1 := 'USD 10';
Example : Recipient token and refund token
This GateKeeper construct creates a recipient token.
MyRole == 'Recipient' orSay 'Role does not match';
TransactionTimestamp <= '2008-10-289T03:49-0700' orSay 'TransactionTimestamp used after validity';
ChargeFeeTo == 'Caller' orSay 'Charge fees incompatible';
PaymentMethod in ('abt','ach') orSay 'Selected payment method not in the list of acceptable Payment Methods for Recipient';Refund token.
MyRole == 'Sender' orSay 'Role does not match'; OperationType == 'Refund' orSay 'Invalid Operation on Refund Token';
Example : Prepaid instrument, sender token, and funding token
The following GateKeeper constructs are used to create a prepaid instrument, a sender token, and a funding token.
Prepaid instrument
OperationType == 'Prepaid' orSay 'Operation not allowed on Instrument';
Sender Token
string MyTokenUsageLimit1Type := 'Amount'; TransactionTimestamp <= '2008-10-289T06:04-0700‘, string PaymentMethod := 'prepaid'; string PaymentInstrument := '87DD….GSV'; MyRole == 'Sender' orSay 'Role does not match'; money MyTokenUsageLimit1 := 'USD 50';
Funding token
string MyTokenUsageLimit1Type := 'Amount'; TransactionTimestamp <= '2008-10-284T05:22-0700'; string PaymentMethod := 'abt'; MyRole == 'Sender' orSay 'Role does not match'; money MyTokenUsageLimit1 := 'USD 100'; duration MyTokenUsageLimit2Period := '1 months'; string MyTokenUsageLimit2Type := 'Count'; integer MyTokenUsageLimit2 := 5;