This file contains 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
- (void)startPayment { | |
if (seld.device.status == notBoarded) { | |
[self boardDevice] | |
return; | |
} | |
if (self.device.status != initialized) { | |
[self showError]; | |
return; | |
} | |
startTransaction |
This file contains 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
@implementation MockChain | |
// execute synchroniously all blocks on main thread and sleep `X` seconds between them | |
+ (void)sleep:(NSTimeInterval)ti chain:(MockChainBlock)firstBlock, ... NS_REQUIRES_NIL_TERMINATION | |
{ | |
NSMutableArray *arr = [NSMutableArray array]; | |
va_list args; | |
va_start(args, firstBlock); | |
This file contains 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
Feb 12 16:59:25 iPad-van-Adyen FastQueue[2212] <Error>: Could not successfully update network info during initialization. | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Notice>: RCOrderManager::initializePaymentProvider:withCallback:: OrderService > Will initialize for current customer with payment provider <RCAdyenProvider: 0x15771870> | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Notice>: RCAdyenProvider::initializeForCurrentCustomerWithCallback:: | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Notice>: RCAdyenProvider::setCurrentState:: 1 | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Notice>: RCAdyenProvider::initializeForCurrentCustomerWithCallback:: Trying to connect to Adyen with code MKEMOTOPOS | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Notice>: RCAdyenProvider::loginChangedStatus:: Adyen login status changed to: 0 | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Notice>: RCAdyenProvider::loginChangedStatus:: Adyen login status changed to: 1 | |
Feb 12 16:59:27 iPad-van-Adyen FastQueue[2212] <Not |
This file contains 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
- (void)transactionComplete:(ADYTransactionData *)transaction { | |
// let super handle the interface changes | |
[super transactionComplete:transaction]; | |
// specific Alerts | |
if (transaction.finalState == ADYFinalTenderStateError && | |
[transaction.rawFailureReason.domain isEqualToString:ADYErrorDomain] && | |
transaction.rawFailureReason.code == ADYErrorCodeInvalidCredentialsForPaymentDevice) | |
{ |
This file contains 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
Verifying that +xslim is my openname (Bitcoin username). https://onename.com/xslim |
This file contains 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
{ | |
<insert_a_suppression_name_here> | |
Memcheck:Leak | |
match-leak-kinds: possible | |
fun:malloc_zone_calloc | |
fun:_read_images | |
fun:map_images_nolock | |
fun:map_images | |
} | |
{ |
This file contains 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
var util = require('util'); | |
var assert = require("assert"); | |
var webdriverio = require('webdriverio'); | |
var driverOptions = require('../config').driverOptions; | |
describe('App integration tests', function(){ | |
this.timeout(99999999); |
This file contains 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
curl -v --proxy proxy:3128 -O https://raw.githubusercontent.com/progrium/gitreceive/master/gitreceive | |
mv gitreceive /usr/local/bin/ | |
chmod +x /usr/local/bin/gitreceive | |
gitreceive init | |
yum install -y mongodb-org | |
vi /etc/group...... | |
yum install git |
This file contains 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
+ (NSData *)aesEncrypt:(NSData *)plainText withKey:(NSData *)key nonce:(NSData *)nonce error:(NSError **)error | |
{ | |
#define FAIL(X) NSLog(@"Error: %@", cause); goto cleanup | |
NSMutableData* cipherText = ([[NSMutableData alloc] init]); | |
NSMutableData* tag = ([[NSMutableData alloc] init]); | |
unsigned char* outbuf = NULL; | |
// create and initialise the cipher context | |
EVP_CIPHER_CTX* cipherCtx = NULL; |
This file contains 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
var express = require('express'); | |
var port = process.env.PORT || 9000; | |
var key = 'xxx'; | |
var app = express(); | |
app.all('/hmac', function(req, res){ | |
var text = req.query.text; | |
hash = hmacsha1(text, key); | |
res.end(hash) |