readme some
This commit is contained in:
parent
c79541a48b
commit
8785e98464
|
@ -13,6 +13,12 @@ This is a newer version of https://github.com/rimian/discourse-donations. Many t
|
|||
* Add your Stripe public and private keys in settings and set the currency to your local value.
|
||||
* Enable the plugin and wait for people to donate money.
|
||||
|
||||
## Usage
|
||||
|
||||
Enable the plugin and enter your Stripe API keys in the settings. You can also configure amounts and the default currency.
|
||||
|
||||
Visit `/patrons`
|
||||
|
||||
## Testing
|
||||
|
||||
## Warranty
|
||||
|
|
|
@ -36,6 +36,12 @@ module DiscoursePatrons
|
|||
post :create, params: {}, format: :json
|
||||
expect(response).to have_http_status(200)
|
||||
end
|
||||
|
||||
it 'has curency' do
|
||||
::Stripe::PaymentIntent.expects(:create).with(has_entry(:currency, 'AUD'))
|
||||
post :create, params: {}, format: :json
|
||||
expect(response).to have_http_status(200)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue