Package com.niyamit.spreedly.paymentmethods

Examples of com.niyamit.spreedly.paymentmethods.CreditCard


    @Test
    public void testAdd() {
        //set up data
        final PaymentMethod paymentMethod = objectFactory.createPaymentMethod();
        paymentMethod.setEmail("jpicard@ufp.net");
        final CreditCard creditCard = objectFactory.createCreditCard();
        creditCard.setFirstName("Jean-Luc");
        creditCard.setLastName("Picard");
        creditCard.setNumber("5555555555554444");
        creditCard.setVerificationValue("423");
        creditCard.setMonth("3");
        creditCard.setYear("2032");
        paymentMethod.setCreditCard(creditCard);
//        paymentMethod.setData("<paymentMethodId>448</paymentMethodId>");
        paymentMethod.setRetained(Boolean.TRUE);

        //call method under test
View Full Code Here


    public PaymentMethod createPaymentMethod() {
        return new PaymentMethod();
    }

    public CreditCard createCreditCard() {
        return new CreditCard();
    }
View Full Code Here

TOP

Related Classes of com.niyamit.spreedly.paymentmethods.CreditCard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.