<commit_before>class Spree::Ccavenue::PaymentMethod < Spree::PaymentMethod
  preference :merchant_id,    :string
  preference :access_code,    :string
  preference :encryption_key, :string
  #preference :url,            :string, :default => 'https://secure.ccavenue.com/transaction/transaction.do'

  def preferred_url
    'https://secure.ccavenue.com/transaction/transaction.do'
  end

  def auto_capture?
    true
  end
<commit_msg>Added preferred_url_type method to satisfy spree api<commit_after>class Spree::Ccavenue::PaymentMethod < Spree::PaymentMethod
  preference :merchant_id,    :string
  preference :access_code,    :string
  preference :encryption_key, :string
  #preference :url,            :string, :default => 'https://secure.ccavenue.com/transaction/transaction.do'

  def preferred_url
    'https://secure.ccavenue.com/transaction/transaction.do'
  end

  def preferred_url_type
    ''
  end

  def auto_capture?
    true
  end

{'fraction_non_alphanumeric': 0.10359408033826638, 'fraction_numerical': 0.0, 'mean_word_length': 4.037234042553192, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2390730', 'n_tokens_mistral': 297, 'n_tokens_neox': 297, 'n_words': 59}