Giter Club home page Giter Club logo

cybersource-android-sdk's People

Contributors

brianmc avatar fezzubair avatar gnongsie avatar scopelan avatar

Watchers

 avatar  avatar  avatar  avatar

cybersource-android-sdk's Issues

Migrate from JCenter

Hello ๐Ÿ‘‹

As you may know, JCenter is going to be shutdown very soon (more information here). I wanted to do a full migration on my app to remove JCenter, but because of Cybersource sdk being hosted on JCenter I can't do it. Is it already plan to move on to Maven Central?

MasterCard checker is outdated

The card start with 2221-2720 is not passing current checker.
Can consider to update the utils.

private static boolean checkIfMasterCard(int size, String value) {
		int firstChars = Integer.parseInt(value.substring(0, 2));
		int firstCharsRules2017 = Integer.parseInt(value.substring(0, 4));
		if (size == 16
				&& ((firstChars >= 51 && firstChars <= 55)
				|| (firstCharsRules2017 >= 2221 && firstChars <= 2720))) {
			return true;
		} else {
			return false;
		}
	}

SDKTransactionObject how can i set amount of money

I received SDK_ACCEPT and SDK_RESPONSE_REASON_CODE_SUCCESSFUL_TRANSACTION

onApiConnectionFinished

and on cyber testing panel (Transaction Search) i can see transaction is done but with amount empty
i am asking about how can i set amount of money ?

private SDKTransactionObject prepareTransactionObject() {
        // create a transaction object by calling the predefined api for creation
        return SDKTransactionObject.
                createTransactionObject(SDKTransactionType.SDK_TRANSACTION_ENCRYPTION) // type of transaction object
                .merchantReferenceCode("Android_Sample_Code" + "_" + Long.toString(System.currentTimeMillis())) // caqn be set to anything meaningful
                .cardData(prepareTestCardData()) // card data to be encrypted
                .billTo(prepareBillingInformation()) // billing information
                .build();
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.