Sha256: 8740a639e311e07bfaaf77e8f04beb5741945e0ab25c5c52cbf1edebbab89c63
Contents?: true
Size: 634 Bytes
Versions: 16
Compression:
Stored size: 634 Bytes
Contents
module Spreedly module CreationHelper def create_card_on(environment, options = {}) deets = default_card_deets.merge(options) environment.add_credit_card(deets).payment_method end def create_failed_card_on(environment, options = {}) deets = default_card_deets.merge(number: '4012888888881881').merge(options) environment.add_credit_card(deets).payment_method end private def default_card_deets { email: 'perrin@wot.com', number: '5555555555554444', month: 1, year: 2019, last_name: 'Aybara', first_name: 'Perrin', retained: true } end end end
Version data entries
16 entries across 16 versions & 1 rubygems