Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pay-rails/pay
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Feb 13, 2020
2 parents 0a52972 + acab143 commit 72516e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/pay/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<head class="h-full">
<html class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Payment Confirmation - <%= Pay.business_name %></title>
Expand Down
2 changes: 1 addition & 1 deletion app/views/pay/payments/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="app" class="h-full md:flex md:justify-center md:items-center">
<div id="app" class="h-screen md:flex md:justify-center md:items-center">
<div class="w-full max-w-lg">
<!-- Status Messages -->
<p class="flex items-center mb-4 bg-red-100 border border-red-200 px-5 py-2 rounded-lg text-red-500" v-if="errorMessage">
Expand Down
4 changes: 2 additions & 2 deletions lib/pay/stripe/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ def stripe?
end

def stripe_charge
Stripe::Charge.retrieve(processor_id)
::Stripe::Charge.retrieve(processor_id)
rescue ::Stripe::StripeError => e
raise Error, e.message
end

def stripe_refund!(amount_to_refund)
Stripe::Refund.create(
::Stripe::Refund.create(
charge: processor_id,
amount: amount_to_refund
)
Expand Down

0 comments on commit 72516e0

Please sign in to comment.