Skip to content

Instantly share code, notes, and snippets.

@davidolesch
Last active March 2, 2017 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidolesch/266a4553897386a800e7e5e00113cf8b to your computer and use it in GitHub Desktop.
Save davidolesch/266a4553897386a800e7e5e00113cf8b to your computer and use it in GitHub Desktop.
#import "AppDelegate.h"
@import AcceptSDK;
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AcceptSDKHandler *handler = [[AcceptSDKHandler alloc] initWithEnvironment:AcceptSDKEnvironmentENV_TEST];
AcceptSDKRequest *request = [[AcceptSDKRequest alloc] init];
request.merchantAuthentication.name = @"replaced with sandbox Login ID";
request.merchantAuthentication.clientKey = @"replaced with sandbox signature key";
request.securePaymentContainerRequest.webCheckOutDataType.token.cardNumber = @"5424000000000015";
request.securePaymentContainerRequest.webCheckOutDataType.token.expirationMonth = @"12";
request.securePaymentContainerRequest.webCheckOutDataType.token.expirationYear = @"21";
request.securePaymentContainerRequest.webCheckOutDataType.token.cardCode = @"123";
[handler getTokenWithRequest:request successHandler:^(AcceptSDKTokenResponse * _Nonnull token) {
} failureHandler:^(AcceptSDKErrorResponse * _Nonnull error) {
}];
return YES;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment