Casper Thomsen

Results 5 comments of Casper Thomsen

Just a quick thought: I guess you could define your own currency like `USD4` ("USD with exponent 4") and have conversions etc. between `USD` and your `USD4`. Not sure how...

I think it's valuable. Different sources could also be considered. (Often times you have not only buy and sell rates but such pairs in a multitude of different banks.) Dunno...

The symmetric key is generated from the merchant id and the shared secret: https://github.com/spreedly/gala/blob/master/lib/gala/payment_token.rb#L98-L110 The merchant id can be extracted from the merchant's certificate: https://github.com/spreedly/gala/blob/master/lib/gala/payment_token.rb#L81-L88 (See "Party V Info" on...

Unfortunately I'm not familiar with `test/unit` (I couldn't even make the specs run locally; see below), but in rspec I'd amend `test_failed_decrypt` to hit the different `InvalidSignatureError`s and e.g. ```ruby...

Replaced by https://github.com/spreedly/gala/pull/24.