- Have
AdyenToolkit
library in../AdyenPOSLib
folder - install Cocoapods
- run
pod install
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
#import "ViewController.h" | |
// Do not forget to put in Podfile: | |
// use_frameworks! | |
// pod "AdyenBarcoder" | |
#import <AdyenBarcoder/AdyenBarcoder-Swift.h> | |
@interface ViewController () <BarcoderDelegate> | |
@end |
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
#!/bin/sh | |
projectfile=`find -d . -name 'project.pbxproj'` | |
projectdir=`echo *.xcodeproj` | |
projectfile="${projectdir}/project.pbxproj" | |
tempfile="${projectdir}/project.pbxproj.out" | |
savefile="${projectdir}/project.pbxproj.mergesave" | |
cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile | |
cp $projectfile $savefile |
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)viewDidLoad { | |
[super viewDidLoad]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(barcodeReceived:) | |
name:ADYNotificationBarcodeReceived | |
object:nil]; | |
// Optional - button to trigger soft scan |
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
source :rubygems | |
group :test do | |
gem "rspec" | |
gem "remote_http_testing" | |
# Beautifying | |
gem 'awesome_print' | |
end |
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
#!/bin/sh | |
# addDebugSettingsChild.sh | |
# | |
# Simple script to inject a Debug menu in an iPhone Settings plist. | |
# | |
# created 10.15.2008 by Andy Mroczkowski, mrox.net | |
THIS="`basename $0`" | |
PLISTBUDDY="/usr/libexec/PlistBuddy -x" |
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
/* | |
* Test | |
*/ | |
function test(title, f, options) { | |
if (options == null) { | |
options = { | |
logTree: true | |
}; | |
} |
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
+ (BOOL)checkJailbreak { | |
//#if DEBUG | |
// return NO; | |
//#endif | |
BOOL debug = YES; | |
if (debug) NSLog(@"setup started"); | |
int is_jailbroken = 0; | |
int result = fork(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<input type="button" id="stopButton" value="Stop Listening"/> | |
<hr/> | |
<div id="content"></div> | |
<script> |
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
{ | |
"paymentMethods":[ | |
{ | |
"brandCode":"diners", | |
"name":"Diners Club" | |
}, | |
{ | |
"brandCode":"discover", | |
"name":"Discover" | |
}, |