This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.hazelcast | |
import com.hazelcast.core.IMap | |
import xitrum.hazelcast.{Hz, Session ⇒ HazelcastSession} | |
/** Overridden version of xitrum.hazelcast.Session store to limit a user to a | |
* single session. | |
*/ | |
class Session extends HazelcastSession { | |
private[this] lazy val store = Hz.instance.getMap("xitrum/session").asInstanceOf[IMap[String, Map[String, Any]]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'mpg.php'; | |
$mpg = new Mpg(array( | |
'merchantId' => '980xxxxxxx', | |
'merchantResponseUrl' => 'https://example.com/response', | |
'transactionPassword' => 'xxxxxxxx', | |
'orderId' => 'XXX12341234', | |
'amount' => '149.99')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Import the net nodejs package. */ | |
var connect = require('net'); | |
function Izs(host, port) { | |
/** Field object type to define a field for Izs message fields. */ | |
var Field = function(name, length, value, justify) { | |
if (name == null) throw new Error('a name has to be specified for a field.'); | |
if (length == null) length = 0; | |
if (value == null) value = ''; |