8

I have successfully integrated the Card.io plugin for Phonegap in Android and iOS.

My client does not want the Paypal logo to be displayed on the top right of the scanning screen. Is there a way to hide it?

enter image description here

Shah Abaz Khan
  • 565
  • 4
  • 21

5 Answers5

6

The current PhoneGap plugin implementation doesn't have this functionality implemented, however it very simple to add it, just fork the plugin and modify it to use card.io logo instead of PayPal.

For iOS https://github.com/card-io/card.io-iOS-SDK/blob/master/CardIO/CardIOPaymentViewController.h#L92

For Android http://card-io.github.io/card.io-Android-SDK/io/card/payment/CardIOActivity.html#EXTRA_USE_CARDIO_LOGO

Hope it helps.

Romk1n
  • 401
  • 2
  • 4
  • I am in the right track, thanks Romk1n. I was able to set the value of EXTRA_USE_CARDIO_LOGO to false in CardIOMain.java to remove the paypal logo. Android is done, but I'm not very good with Objective C.. I know I just have to change value of 'useCardIOLogo' from NO to YES. But I don't know where or how to do that. Could you please mention the steps for doing that in iOS? – Shah Abaz Khan Nov 01 '13 at 12:26
  • Just call self.paymentViewController.useCardIOLogo = YES; after https://github.com/card-io/card.io-iOS-SDK-PhoneGap/blob/master/CardIOPGPlugin.m#L32 – Romk1n Nov 02 '13 at 19:41
  • Great! The answer is now complete.. :) It will be nice to know if there was a way to remove the logos completely. As if now, the card.io logo is shown instead of Paypal. – Shah Abaz Khan Nov 04 '13 at 03:38
3

Yeah , is possible HIDE logo paypal and logo Card IO in Android native, But its a work Hard.

You need open Jar card.io, after that you need decompiler code, after that with .class files

you need Assembler Editor to in Byte code instruction of Machine you can Remove booth images

and nothing is showed, you cannot remove keyboard, but you can put a black screen above that, in link , you have card-io-modified.jar , with this jar you remove that things

get lib here : https://github.com/luizfelipetx/CardIO-Modified

=)

luizfelipetx
  • 388
  • 4
  • 7
  • 4
    This is a clever solution, and I applaud your hard work. However, out of respect for the fact that card.io is offered free to the world, I'd ask that you take down the repo, and that folks in general not do this. Thanks! – Josh Bleecher Snyder Jun 13 '14 at 01:07
3

For Native IOS

 CardIOPaymentViewController *scanViewController = [[CardIOPaymentViewController alloc] initWithPaymentDelegate:self];


 scanViewController.hideCardIOLogo=YES;
0

You can try this plugin: Card.IO

It has property called "hideLogo": true

keeper
  • 1
  • 1
0

On line 81 of CardIOCordovaPlugin.m, you can change the line of code

paymentViewController.hideCardIOLogo = YES;
Fiach Reid
  • 6,149
  • 2
  • 30
  • 34