Looking for help on how to incorporate Stripe into my existing files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Looking for help on how to incorporate Stripe into my existing files

David Merrick
I want to know how I can successfully put this part of the 
create method of the charges controller 
 # Amount in cents
  @amount = 2000

  customer = Stripe::Customer.create(
:email => params[:stripeEmail],
:source  => params[:stripeToken]
  )

  charge = Stripe::Charge.create(
:customer    => customer.id,
:amount      => @amount,
:description => 'Rails Stripe customer',
:currency    => 'usd'
  )

into the users create method of the users controller

def create
    @user = User.new(user_params)
    if @user.save
      @user.send_activation_email
      flash[:info] = "Please check your email to activate your account."
      redirect_to root_url
    else
      render 'new'
    end
  end 

And put the code below of new.html.erb

<article>
    <% if flash[:error].present? %>
      <div id="error_explanation">
        <p><%= flash[:error] %></p>
      </div>
    <% end %>
    <label class="amount">
      <span>Amount: $20.00</span>
    </label>
  </article>

  <script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
          data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
          data-description="Membership Subscription"
          data-amount="2000"
          data-locale="auto">
  </script>

<%= form_for(@user) do |f| %>
  <%= render 'shared/error_messages', object: f.object %>

  <%= f.label :name %>
  <%= f.text_field :name, class: 'form-control' %>

  <%= f.label :email %>
  <%= f.email_field :email, class: 'form-control' %>

  <%= f.label :password %>
  <%= f.password_field :password, class: 'form-control' %>

  <%= f.label :password_confirmation %>
  <%= f.password_field :password_confirmation, class: 'form-control' %>

  <%= f.submit yield(:button_text), class: "btn btn-primary" %>
<% end %>

Cheers Dave

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/996f1463-6e97-4017-91f7-ef6b1214707f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Hassan Schroeder-2
On Tue, Aug 7, 2018 at 9:39 PM, David Merrick <[hidden email]> wrote:
> I want to know how I can successfully put this part of the
> create method of the charges controller
> into the users create method of the users controller

What have you tried, and how was it unsuccessful?

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC8V%3DUs_pLaT2_YnbABxVt7cohD5xuFv-FZV0YwC2-j0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Mauro Sanna
Please delete me.

On Wed, 8 Aug 2018 at 18:01, Hassan Schroeder <[hidden email]> wrote:
On Tue, Aug 7, 2018 at 9:39 PM, David Merrick <[hidden email]> wrote:
> I want to know how I can successfully put this part of the
> create method of the charges controller
> into the users create method of the users controller

What have you tried, and how was it unsuccessful?

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC8V%3DUs_pLaT2_YnbABxVt7cohD5xuFv-FZV0YwC2-j0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAE17a0W-rrWbn%3DzpiunFq3x_sUaCs_C7QfTimQwCQoGUi2z%3DFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Walter Lee Davis
There is a link at the bottom of each message you receive from this list, where you can do just that. Nobody else here can delete you, we are all users, not admins.

Walter

> On Aug 9, 2018, at 5:30 AM, Mauro Sanna <[hidden email]> wrote:
>
> Please delete me.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/B60E8D0E-CDE6-471B-B21D-E36494302960%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

David Merrick
Still can't the stripe integrated into my App
 New users controller

class UsersController < ApplicationController
  before_action :logged_in_user, only: [:index, :edit, :update, :destroy,
                                        :following, :followers]
  
  before_action :correct_user,   only: [:edit, :update]
  before_action :admin_user,     only: :destroy
  
  def index
    @users = User.where(activated: true).paginate(page: params[:page])
  end
  
  def show
    @user = User.find(params[:id])
    redirect_to root_url and return unless @user.activated?
  end

  def new
    @user = User.new
  end

  def create
    @user = User.new(user_params)
    # Amount in cents
  @amount = 2000

  customer = Stripe::Customer.create(
:email => params[:stripeEmail],
:source  => params[:stripeToken]
  )

  charge = Stripe::Charge.create(
:customer    => customer.id,
:amount      => @amount,
:description => 'Rails Stripe customer',
:currency    => 'usd'
  )

rescue Stripe::CardError => e
  flash[:error] = e.message
  redirect_to new_charge_path
    
    if @user.save
      @user.send_activation_email
      flash[:info] = "Please check your email to activate your account."
      redirect_to root_url
    else
      render 'new'
    end
  end  

  def edit
    @user = User.find(params[:id])
  end

  def update
    @user = User.find(params[:id])
    if @user.update_attributes(user_params)
      flash[:success] = "Profile updated"
      redirect_to @user
    else
      render 'edit'
    end
  end
  
  def destroy
    User.find(params[:id]).destroy
    flash[:success] = "User deleted"
    redirect_to users_url
  end

Adjusted routes incorporating charges 

Rails.application.routes.draw do
  root 'static_pages#home'
  get 'password_resets/new'
  get 'password_resets/edit'
  get 'sessions/new'
  get 'users/new'  
  get '/help',    to: 'static_pages#help'
  get '/about',   to: 'static_pages#about'
  get '/contact', to: 'static_pages#contact'
  get  '/signup',  to: 'users#new'
  post '/signup',  to: 'users#create'
  get    '/login',   to: 'sessions#new'
  post   '/login',   to: 'sessions#create'
  delete '/logout',  to: 'sessions#destroy'
  get 'game/BlackJack'
  get 'game/Poker'
  get 'game/Yaghtzee'
  get 'game/MasterMind'
  get '/blackjack',    to: 'game#BlackJack'
  get '/poker',    to: 'game#Poker'
  get '/yaghtzee',    to: 'game#Yaghtzee'
  get '/mastermind',    to: 'game#MasterMind'
  get '/charges',       to:'charges#new'
  
  resources :charges
  resources :users
  resources :game, only: [:BlackJack, :Poker, :Yaghtzee, :MasterMind]
  resources :account_activations, only: [:edit]
  resources :password_resets,     only: [:new, :create, :edit, :update]
end

New users Form with stripe

<%= form_for(@user) do |f| %>
  <%= render 'shared/error_messages', object: f.object %>

  <%= f.label :name %>
  <%= f.text_field :name, class: 'form-control' %>

  <%= f.label :email %>
  <%= f.email_field :email, class: 'form-control' %>

  <%= f.label :password %>
  <%= f.password_field :password, class: 'form-control' %>

  <%= f.label :password_confirmation %>
  <%= f.password_field :password_confirmation, class: 'form-control' %>
  
  
  <article>
    <% if flash[:error].present? %>
      <div id="error_explanation">
        <p><%= flash[:error] %></p>
      </div>
    <% end %>
    <label class="amount">
      <span>Amount: $20.00</span>
    </label>
  </article>

  <script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
          data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
          data-description="Membership Subscription"
          data-amount="2000"
          data-locale="auto">
  </script>
  

  <%= f.submit yield(:button_text), class: "btn btn-primary" %>
<% end %>

I'm getting this error

NoMethodError in Users#new

Showing /home/dave/Documents/Rails/TestApps/GamesRailsProjectWithStripeAugust8/SampleApp/app/views/users/_form.html.erb where line #30 raised:

undefined method `stripe' for #<Rails::Application::Configuration:0x00000003eea4c8>
Extracted source (around line #30):
28
29
30
31
32
33
              
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
data-description="Membership Subscription"
data-amount="2000"
data-locale="auto">

Trace of template inclusion: app/views/users/new.html.erb

Rails.root: /home/dave/Documents/Rails/TestApps/GamesRailsProjectWithStripeAugust8/SampleApp

I am  relatively new to rails and have idea to solve this problem.

On Fri, Aug 10, 2018 at 12:12 AM Walter Lee Davis <[hidden email]> wrote:
There is a link at the bottom of each message you receive from this list, where you can do just that. Nobody else here can delete you, we are all users, not admins.

Walter

> On Aug 9, 2018, at 5:30 AM, Mauro Sanna <[hidden email]> wrote:
>
> Please delete me.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/B60E8D0E-CDE6-471B-B21D-E36494302960%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKYVfnJqoUZATJL7bm9ng_EqwwOkTvPhNQe762qq8_%3DsAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Mugurel Chirica
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

David Merrick
Thanks

On Sat, Aug 11, 2018 at 8:45 AM Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbaviB59ZCmWQV_zoNFQMc3Lh0_jfZ7KfEFvRahe4hwtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Joe Guerra
have you seen this?

http://railscasts.com/episodes/288-billing-with-stripe

On Friday, August 10, 2018 at 5:09:52 PM UTC-4, David Merrick wrote:
Thanks

On Sat, Aug 11, 2018 at 8:45 AM Mugurel Chirica <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="LgvVFtCyAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chirica...@...> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="LgvVFtCyAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonrails-ta...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="LgvVFtCyAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website <a href="http://www.daveswebdesigns.co.nz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz

Email <a href="javascript:" target="_blank" gdf-obfuscated-mailto="LgvVFtCyAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">merri...@...

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/579e4791-2df7-451e-8952-c6837c2dbb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

David Merrick
No. But I'm going to watch it now thanks

On Sat, Aug 11, 2018 at 12:15 PM Joe Guerra <[hidden email]> wrote:
have you seen this?

http://railscasts.com/episodes/288-billing-with-stripe

On Friday, August 10, 2018 at 5:09:52 PM UTC-4, David Merrick wrote:
Thanks

On Sat, Aug 11, 2018 at 8:45 AM Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/579e4791-2df7-451e-8952-c6837c2dbb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbO-59JmMHHeKfPuxaV2-O%3DCjxAd-%3DjwFyRWZQ4mno4Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

David Merrick
In reply to this post by Joe Guerra
Hi Joe

Is subscriptions.js.coffee going to work in rails '5.1.2'?
Cheers Dave

On Sat, Aug 11, 2018 at 12:15 PM Joe Guerra <[hidden email]> wrote:
have you seen this?

http://railscasts.com/episodes/288-billing-with-stripe

On Friday, August 10, 2018 at 5:09:52 PM UTC-4, David Merrick wrote:
Thanks

On Sat, Aug 11, 2018 at 8:45 AM Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/579e4791-2df7-451e-8952-c6837c2dbb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZFApK05%3DBSsC22eOSuEwh%3D06T_%3DvO%3DS%2Bi9C%3D0ZezDtzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Mauro Sanna
In reply to this post by Mugurel Chirica
Would you unsubscribe me?

On Fri, 10 Aug 2018 at 22:45, Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAE17a0X%2BkZYPn64Ft6cXtw4nvAH-Xpayj%3DYz9uVJX6NW9sP6TA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

David Merrick
You have to delete yourself Mauro

On Sun, Aug 12, 2018 at 3:14 AM Mauro Sanna <[hidden email]> wrote:
Would you unsubscribe me?

On Fri, 10 Aug 2018 at 22:45, Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAE17a0X%2BkZYPn64Ft6cXtw4nvAH-Xpayj%3DYz9uVJX6NW9sP6TA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKYdvbycbawrkEEzoWMJrRgdZGFoom7reGGMZQrR1u0sSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Mauro Locatelli
In reply to this post by Mauro Sanna
Nessuno può rimuoverlo, devi fare fa solo mandanfo una mail vuota a


In automatico sarai rimosso dal gruppo.
Ciao Mauro

Il sab 11 ago 2018, 17:14 Mauro Sanna <[hidden email]> ha scritto:
Would you unsubscribe me?

On Fri, 10 Aug 2018 at 22:45, Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAE17a0X%2BkZYPn64Ft6cXtw4nvAH-Xpayj%3DYz9uVJX6NW9sP6TA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANnJYrpvxCESsWhW6rNYjCr3y_4JLXcjPZ9T5W7F%2BGyiog_kxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

M.Dumlupinar
In reply to this post by David Merrick
i need to quit this group, too. but i was unable to do so. there is no way for cancelling my subscription. i mean, unsubscribe link at the bottom of every message in this group does not work.

12 Ağustos 2018 Pazar tarihinde, David Merrick <[hidden email]> yazdı:
You have to delete yourself Mauro

On Sun, Aug 12, 2018 at 3:14 AM Mauro Sanna <[hidden email]> wrote:
Would you unsubscribe me?

On Fri, 10 Aug 2018 at 22:45, Mugurel Chirica <[hidden email]> wrote:
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and add them to your application, with something like `config/initializers/stripe.rb' (depending on what gem you use).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAE17a0X%2BkZYPn64Ft6cXtw4nvAH-Xpayj%3DYz9uVJX6NW9sP6TA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKYdvbycbawrkEEzoWMJrRgdZGFoom7reGGMZQrR1u0sSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
İyi çalışmalar...

Mustafa DUMLUPINAR

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL1p2OprwK5ympYT56S%3D0LVznGewwXN7mAaNPRfbVpidLEusoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Looking for help on how to incorporate Stripe into my existing files

Colin Law
On Sun, 12 Aug 2018 at 09:00, M.Dumlupinar <[hidden email]> wrote:
i need to quit this group, too. but i was unable to do so. there is no way for cancelling my subscription. i mean, unsubscribe link at the bottom of every message in this group does not work.

Go to the group page and do it from there (button top right next to the settings button). https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/rubyonrails-talk

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvrj6KwLSR_oFeZZARVxYVPDfw9YHNAKh7OwBQvRyTwtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.