Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 13    Views: 103

ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
02/12/13 03:55 PM (12 years ago)

Card.io integration GREAT for commerce apps

Great SDK for commerce apps! Can anyone post a quick walkthrough on integrating this sdk into buzztouch app iOS hosted on buzztouch server https://www.card.io/integrate/ios I cannot seem to get it to work after following the site's directions, also read some posts that it may have to do with landscape orientation but not really sure if thats the problem
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/12/13 03:58 PM (12 years ago)
i have been trying on a buzztouch blank screen
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:13 PM (12 years ago)
I've just followed there tutorial in a blank plugin, quite easy worked first time. Whats the problem your having
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/12/13 04:15 PM (12 years ago)
do you have to create a button within the screen or does the card reader auto-load when the blank screen is opened?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:17 PM (12 years ago)
you can make it auto load if you want change - (IBAction)scanCard:(id)sender { to -(void)scanCard{ then in the view did load method add [self scanCard];
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:19 PM (12 years ago)
How do you use it to pay for something, it doesn't have any merchant services
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:32 PM (12 years ago)
Has that worked
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/12/13 05:47 PM (12 years ago)
got it working somewhat, but it only goes to the 'enter card info' screen, not the take a photo of card screen I would like, also not sure on the merchant services, I figured it sends the info to a database or something that can then process payment, may have to contact the card.io people, anyway, were you able to get the take a picture of card screen?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 05:58 PM (12 years ago)
I'm away from mac so lets try to do this blind. Look in the four files from there frame work. Your looking for a line that looks a bit like +(bool)takeCardFromCamera; It something like that copy it. Paste it into your plugin .m file outside any other curly braces ChAnge it to this +(bool)takeCardFromCamera { Return TRUE; } That's it Remember that's a guess of the method find it in there ask files. Let me know if it works then I may know I'm in the matrix
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/12/13 06:30 PM (12 years ago)
Found something similar: + (BOOL)canReadCardWithCamera i pasted into plugin .m as: + (BOOL)canReadCardWithCamera { return TRUE; } Still goes straight to manual input
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/13/13 12:14 AM (12 years ago)
Once I ran it on a real test device it worked!, no need to paste the +(bool) Obviously the simulator defaults to manual input because there is NO CAMERA haha, what do ya know Thanks for the help again!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/13/13 01:37 AM (12 years ago)
Interesting @Zutralife .. I've never heard of card.io. Will you plan in releasing the app in the AppStore or private enterprise level? Good to know about the sdk, could come in handy some day.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/13/13 05:45 AM (12 years ago)
good stuff I'm glad it does what you need it to do, can't wait to see what your'e going to do with it
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/13/13 11:21 AM (12 years ago)
will report back in detail in a couple weeks after learning more and possibly taking the feature to distributed apps, clients seem to want this feature (even at 15 cents per scan, money goes to card.io), it would be interesting to make our own plugin that gets credit card info legitimately and securely through the camera.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.