def json_hpp_card_storage_request_encoded(): path = get_sample_path('samples/hpp_card_storage_request_encoded.json') with codecs.open(path, 'r', encoding='utf-8') as data_file: yield JsonUtils.from_json_hpp_request(data_file.read(), 'utf-8', True)
def json_hpp_payment_request_supplementary_data(): path = get_sample_path( 'samples/hpp_payment_request_supplementary_data.json') with codecs.open(path, 'r', encoding='utf-8') as data_file: yield JsonUtils.from_json_hpp_request(data_file.read(), 'utf-8', False)