-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ed8264
commit 8c53383
Showing
28 changed files
with
697 additions
and
186 deletions.
There are no files selected for viewing
Binary file modified
BIN
+21.9 KB
(130%)
BlockChyp.xcworkspace/xcuserdata/jeffreydpayne.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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
22 changes: 22 additions & 0 deletions
22
blockchyp-ios-examples/MerchantCredentialGenerationExample.m
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <BlockChyp/BlockChyp.h> | ||
|
||
int main (int argc, const char * argv[]) | ||
{ | ||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | ||
|
||
BlockChyp *client = [[BlockChyp alloc] | ||
initWithApiKey:@"SPBXTSDAQVFFX5MGQMUMIRINVI" | ||
bearerToken:@"7BXBTBUPSL3BP7I6Z2CFU6H3WQ" | ||
signingKey:@"bcae3708938cb8004ab1278e6c0fcd68f9d815e1c3c86228d028242b147af58e"]; | ||
|
||
NSMutableDictionary *request = [[NSMutableDictionary alloc] init]; | ||
[client merchantCredentialGenerationWithRequest:request handler:^(NSDictionary *request, NSDictionary *response, NSError *error) { | ||
NSNumber *success = [response objectForKey:@"success"]; | ||
if (success.boolValue) { | ||
NSLog(@"Success"); | ||
} | ||
}]; | ||
[pool drain]; | ||
return 0; | ||
} |
20 changes: 20 additions & 0 deletions
20
blockchyp-ios-examples/MerchantCredentialGenerationExample.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import BlockChyp | ||
|
||
class ExampleClass { | ||
|
||
func example() { | ||
let client = BlockChyp.init( | ||
apiKey: "ZN5WQGX5PN6BE2MF75CEAWRETM", | ||
bearerToken: "SVVHJCYVFWJR2QKYKFWMZQVZL4", | ||
signingKey: "7c1b9e4d1308e7bbe76a1920ddd9449ce50af2629f6bb70ed3c110365935970b" | ||
) | ||
|
||
var request: [String:Any] = [:] | ||
client.merchantCredentialGeneration(withRequest: request, handler: { (request, response, error) in | ||
let approved = response["success"] as? Bool | ||
if (approved.unsafelyUnwrapped) { | ||
NSLog("Success") | ||
} | ||
}) | ||
} | ||
|
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PODFILE CHECKSUM: 915a0737343046da9ecfbb48bd571bc56e185b1f | ||
|
||
COCOAPODS: 1.8.4 | ||
COCOAPODS: 1.14.3 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.