stripe button requests mounted engine
This commit is contained in:
parent
892736deff
commit
df7607043a
|
@ -1,6 +1,6 @@
|
||||||
module Choice
|
module Choice
|
||||||
class ChoiceController < Choice::ApplicationController
|
class ChoiceController < Choice::ApplicationController
|
||||||
def index
|
def create
|
||||||
head 200
|
head 200
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
<form action="https://staging.join.choice.community/consumer-defender">
|
<form action="/choice/stripe">
|
||||||
<script
|
<script
|
||||||
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
|
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
|
||||||
data-key="pk_test_b8RmhzlL8QPizJRqOrKF3JEV"
|
data-key="pk_test_b8RmhzlL8QPizJRqOrKF3JEV"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Choice::Engine.routes.draw do
|
Choice::Engine.routes.draw do
|
||||||
get "about" => "choice#index"
|
get 'stripe' => 'choice#create'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue