/** * American Express **/ function addToCartPageAmericanExpress(Step\Acceptance\ItemsSteps $I, \Page\CheckoutGuestCreditCard $creditCardPageVisa) { $I->processAddToCart(); $creditCardPageVisa->creditCard(); $I->checkAmericanExpress(); $creditCardPageVisa->orderView(); $I->comment('Expected result: PayPal gateway has rejected request.'); }
/** * Master Card */ function addToCartPageMasterCard(Step\Acceptance\ItemsSteps $I, \Page\CheckoutGuestCreditCard $creditCardPageVisa) { $I->processAddToCart(); $creditCardPageVisa->creditCard(); $I->checkMasterCard(); /* $creditCardPageVisa->orderViewAlert(); $I->comment('Expected result: PayPal gateway has rejected request.'); */ $creditCardPageVisa->ordered(); }