All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.braintreegateway.test.VenmoSdk Maven / Gradle / Ivy

package com.braintreegateway.test;

// NEXT_MAJOR_VERSION remove this class
// The old venmo SDK integration has been deprecated
@Deprecated
public class VenmoSdk {
    public enum PaymentMethodCode {
        Visa("4111111111111111"), Invalid("invalid-payment-method-code");

        public String code;

        private PaymentMethodCode(String number) {
            this.code = VenmoSdk.generateTestPaymentMethodCode(number);
        }
    }

    public static String generateTestPaymentMethodCode(String number) {
        return "stub-" + number;
    }

    public enum Session {
        Valid("stub-session"), Invalid("stub-invalid-session");

        public String value;

        private Session(String validity) {
            this.value = validity;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy