How to remove/hide Paypal logo from Card.io Phonegap iOS and Android?
Asked Answered
V

5

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

Vinnie answered 31/10, 2013 at 5:48 Comment(0)
N
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.

Netta answered 31/10, 2013 at 18:7 Comment(3)
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?Vinnie
Just call self.paymentViewController.useCardIOLogo = YES; after github.com/card-io/card.io-iOS-SDK-PhoneGap/blob/master/…Netta
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.Vinnie
M
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

=)

Mier answered 9/6, 2014 at 23:31 Comment(1)
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!Trapp
C
3

For Native IOS

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


 scanViewController.hideCardIOLogo=YES;
Cardona answered 11/3, 2016 at 7:20 Comment(0)
G
0

You can try this plugin: Card.IO

It has property called "hideLogo": true

Gossamer answered 25/2, 2015 at 19:8 Comment(0)
M
0

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

paymentViewController.hideCardIOLogo = YES;
Malonylurea answered 23/5, 2017 at 8:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.