{"action":"closed","issue":{"url":"https://api.github.com/repos/payolapayments/payola/issues/325","repository_url":"https://api.github.com/repos/payolapayments/payola","labels_url":"https://api.github.com/repos/payolapayments/payola/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/payolapayments/payola/issues/325/comments","events_url":"https://api.github.com/repos/payolapayments/payola/issues/325/events","html_url":"https://github.com/payolapayments/payola/issues/325","id":257155277,"node_id":"MDU6SXNzdWUyNTcxNTUyNzc=","number":325,"title":"Error trying to subscribe","user":{"login":"sechix","id":24247266,"node_id":"MDQ6VXNlcjI0MjQ3MjY2","avatar_url":"https://avatars1.githubusercontent.com/u/24247266?v=4","gravatar_id":"","url":"https://api.github.com/users/sechix","html_url":"https://github.com/sechix","followers_url":"https://api.github.com/users/sechix/followers","following_url":"https://api.github.com/users/sechix/following{/other_user}","gists_url":"https://api.github.com/users/sechix/gists{/gist_id}","starred_url":"https://api.github.com/users/sechix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sechix/subscriptions","organizations_url":"https://api.github.com/users/sechix/orgs","repos_url":"https://api.github.com/users/sechix/repos","events_url":"https://api.github.com/users/sechix/events{/privacy}","received_events_url":"https://api.github.com/users/sechix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-12T19:30:18Z","updated_at":"2018-10-16T00:57:42Z","closed_at":"2018-10-16T00:57:42Z","author_association":"NONE","body":"Hello, I tried in different ways but I am not able to subscribe with payola. I have solidus app. This is my subscriptions/new:\r\n\r\n`<% content_for :head do %>\r\n  <%= render 'payola/transactions/stripe_header' %>\r\n<% end %>\r\n<% @plan.plan_class = 'subscription_plan' %>\r\n\r\n<%= form_tag(recurring_plan_subscriptions_url(@plan),\r\n      role: 'form',\r\n      class: 'payola-onestep-subscription-form',\r\n      :method => :post,\r\n      'data-payola-base-path' => '/payola',\r\n      'error-selector' => '.payola-error',\r\n      'data-payola-plan-type' => @plan.plan_class,\r\n      'data-payola-plan-id' => @plan.id\r\n  ) do |f| %>\r\n  <%= hidden_field_tag :stripeEmail,spree_current_user.email, 'data-payola' => 'email' %>\r\n  <%= hidden_field_tag :quantity, 1, 'data-payola' => 'quantity' %>\r\n  <%= hidden_field_tag :stripe_customer_id, spree_current_user.stripe_customer_id %>\r\n  <%= image_tag 'credit_cards/credit_card.gif', :id => 'credit-card-image' %>\r\n      <br />\r\n      <span id=\"error_explanation\" class=\"payola-payment-error\"></span>\r\n      <br />\r\n\r\n  <div id=\"plan_<%= @plan.id %>_subscribe\">\r\n    <p class=\"field no-margin\" data-hook=\"card_number\">\r\n      <%= label_tag \"card_number\", Spree.t(:card_number) %><span class=\"required\">*</span><br />\r\n      <% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %>\r\n      <%= text_field_tag \"card_number\", '', options_hash.merge(:id => 'card_number', :class => 'required cardNumber', :size => 19, :maxlength => 19, :autocomplete => \"off\", 'data-stripe' => 'number') %>\r\n      &nbsp;\r\n      <span id=\"card_type\" style=\"display:none;\">\r\n        ( <span id=\"looks_like\" ><%= Spree.t(:card_type_is) %> <span id=\"type\"></span></span>\r\n          <span id=\"unrecognized\"><%= Spree.t(:unrecognized_card_type) %></span>\r\n        )\r\n      </span>\r\n    </p>\r\n    <p class=\"field\" data-hook=\"card_expiration\">\r\n      <%= label_tag \"card_expiry\", Spree.t(:expiration) %><span class=\"required\">*</span><br />\r\n      <%= text_field_tag \"card_expiry\", '', :id => 'card_expiry', :class => \"required cardExpiry\", :placeholder => \"MM / YY\" , 'data-stripe' => 'card_expiry'%>\r\n\r\n        <%= hidden_field_tag :exp_month, nil, name: nil, id: \"stripe-card-exp-month\", data: { stripe: \"exp-month\" }, 'data-payola' => 'exp_month' %>\r\n        <%= hidden_field_tag :exp_year, nil, name: nil, id: \"stripe-card-exp-year\", data: { stripe: \"exp-year\" } , 'data-stripe' => 'exp_year' %>\r\n\r\n    </p>\r\n    <p class=\"field\" data-hook=\"card_code\">\r\n      <%= label_tag \"card_code\", Spree.t(:card_code) %><span class=\"required\">*</span><br />\r\n      <%= text_field_tag \"card_code\", '', options_hash.merge(:id => 'card_code', :class => 'required cardCode', :size => 5, 'data-stripe' => 'cvc') %>\r\n      <a target=\"_blank\" data-hook=\"cvv_link\" id=\"cvv_link\" href=\"/content/cvv\">(¿Qué es esto?)</a>\r\n    </p>\r\n    <p class=\"field\">\r\n    <input type=\"text\" name=\"coupon\" data-payola=\"coupon\" placeholder=\"Cupón\"></input></p>\r\n     \r\n  </div>\r\n  \r\n\r\n\r\n  <%= button_tag Spree.t(:subscribe), class: 'continue button primary', :id => \"button_pay\" %>\r\n\r\n  <%= check_box_tag :accept_terms_and_conditions  ,'accepted',false %>\r\n                \r\n   <%= label_tag :accept_terms_and_conditions, Spree.t(:acepto) %>\r\n   <a href=\"/user_conditions\" >las condiciones de uso</a>\r\n\r\n\r\n\r\n\r\n  <script>Spree.disableSaveOnClick();</script>\r\n<% end %>\r\n`\r\n\r\nI don't know why I get this error processing the job : NameError: uninitialized constant User.\r\nI guess its due to solidus, but I don't know how to fix it.\r\n"}}
{"actor":{"display_login":"peterkeen"}}