Skip to content

Instantly share code, notes, and snippets.

View pulkitsinghal's full-sized avatar

Pulkit Singhal pulkitsinghal

View GitHub Profile
REST: Authentication challenge! credential=(null)
The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
not_found: no_db_file
unauthorized: You are not a server admin.
not_found: no_db_file
@pulkitsinghal
pulkitsinghal / code.h
Created March 24, 2012 16:58
Incorrect usage of "API Login ID" & "Transaction Key" as name / password
@implementation MerchantAuthenticationType
...
@synthesize name;
@synthesize transactionKey;
@synthesize sessionToken;
@synthesize password;
@synthesize mobileDeviceId;
// CardProcessingUtils.h
@interface CardProcessingUtils : NSObject
{
NSString *sessionToken;
}
- (void) loginToGateway;
@end
@pulkitsinghal
pulkitsinghal / full_log.txt
Created March 25, 2012 00:33
Unregistered device on AuthNet
2012-03-22 19:54:53.134 Reachability Flag Status: -R -----l- networkStatusForFlags
2012-03-22 19:54:53.136 paymentSuccessWithKey 999000111
2012-03-22 19:54:53.137 date == "03/22/12 07:54 PM" AND payKey == "999000111"
2012-03-22 19:54:53.141 name == "berkeley"
2012-03-22 19:54:53.143 The Store already exists.
2012-03-22 19:54:53.151 paymentLibraryExit
2012-03-22 19:54:54.613 Mobile Device Login Response
2012-03-22 19:54:54.614 <?xml version="1.0" encoding="utf-8"?><mobileDeviceLoginResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00054</code><text>The mobile device is not registered with this merchant account.</text></message></messages></mobileDeviceLoginResponse>
namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute
ttp://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"
@pulkitsinghal
pulkitsinghal / full_log.txt
Created March 25, 2012 01:13
Mobile device awaiting approval on AuthNet
2012-03-22 20:11:18.692 Reachability Flag Status: -R -----l- networkStatusForFlags
2012-03-22 20:11:23.714 Reachability Flag Status: -R -----l- networkStatusForFlags
2012-03-22 20:11:33.945 Mobile Device Login Response
2012-03-22 20:11:33.945 <?xml version="1.0" encoding="utf-8"?><mobileDeviceRegistrationResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Ok</resultCode><message><code>I00005</code><text>The mobile device has been submitted for approval by the account administrator.</text></message></messages></mobileDeviceRegistrationResponse>
namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute
ttp://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"
^
2012-03-22 20:11:33.946 Error = (null)
2012-03-22 20:11:33.947 Message:
Message.code = I00005
@pulkitsinghal
pulkitsinghal / full_log.txt
Created March 25, 2012 01:38
Mobile Device is ready for use
2012-03-22 20:40:45.869 Reachability Flag Status: -R -----l- networkStatusForFlags
2012-03-22 20:40:45.873 Reachability Flag Status: -R -----l- networkStatusForFlags
2012-03-22 20:40:45.875 paymentSuccessWithKey 999000111
2012-03-22 20:40:45.881 date == "03/22/12 08:40 PM" AND payKey == "999000111"
2012-03-22 20:40:45.889 name == "berkeley"
2012-03-22 20:40:45.893 The Store already exists.
2012-03-22 20:40:45.914 paymentLibraryExit
2012-03-22 20:40:47.391 Mobile Device Login Response
2012-03-22 20:40:47.392 <?xml version="1.0" encoding="utf-8"?><mobileDeviceRegistrationResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Ok</resultCode><message><code>I00006</code><text>The mobile device is approved and ready for use.</text></message></messages></mobileDeviceRegistrationResponse>
namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute
@pulkitsinghal
pulkitsinghal / gist:2190696
Created March 25, 2012 01:52
Missing AuthNet.a binary
8 total like this -
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AuthNet", referenced from:
objc-class-ref in MyProject_AppDelegate.o
objc-class-ref in CardProcessingUtils.o
(maybe you meant: _OBJC_CLASS_$_AuthNetWorkaround)
ld: symbol(s) not found for architecture i386
@pulkitsinghal
pulkitsinghal / ESBody.m
Created April 7, 2012 22:28
RestKit ElasticSearch Client
#import "ESBody.h"
@implementation ESBody
@synthesize fields, query;
+ (RKObjectMapping *) getObjectMapping
{
RKObjectMapping* objectMapping = [RKObjectMapping mappingForClass:[ESBody class]];
@pulkitsinghal
pulkitsinghal / gist:2403335
Created April 17, 2012 03:48
Does Inverse Mapping For Dynamic Attributes work?
2012-04-16 22:44:56.415 ElasticSearchClient[13287:fb03] T restkit.object_mapping:RKObjectMappingOperation.m:322 Mapping attribute value keyPath 'key_field' to '<RK_NESTING_ATTRIBUTE>'
2012-04-16 22:44:56.420 ElasticSearchClient[13287:fb03] T restkit.object_mapping:RKObjectMappingOperation.m:332 Mapped attribute value from keyPath 'key_field' to '<RK_NESTING_ATTRIBUTE>'. Value: salePrice
2012-04-16 22:44:56.447 ElasticSearchClient[13287:fb03] T restkit.object_mapping:RKObjectMappingOperation.m:322 Mapping attribute value keyPath 'from' to '(key_field).from'
2012-04-16 22:44:56.449 ElasticSearchClient[13287:fb03] W restkit.object_mapping:RKObjectMappingOperation.m:250 Destination object {
"<RK_NESTING_ATTRIBUTE>" = salePrice;
} rejected attribute value 10 for keyPath (key_field).from. Skipping...
2012-04-16 22:44:56.451 ElasticSearchClient[13287:fb03] T restkit.object_mapping:RKObjectMappingOperation.m:339 Skipped mapping of attribute value from keyPath 'from to keyPath '(key_field).from' -- value is unchan