Skip to content

Commit

Permalink
Standardize
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Aug 22, 2023
1 parent ffab78d commit f1995cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pay/stripe/billable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def charge(amount, options = {})
payment_method = pay_customer.default_payment_method
args = {
confirm: true,
payment_method: payment_method&.processor_id,
payment_method: payment_method&.processor_id
}.merge(options)

payment_intent = create_payment_intent(amount, args)
Expand All @@ -111,7 +111,7 @@ def create_payment_intent(amount, options = {})

# Used for creating Stripe Terminal charges
def terminal_charge(amount, options = {})
create_payment_intent(amount, options.merge( payment_method_types: ["card_present"], capture_method: "manual"))
create_payment_intent(amount, options.merge(payment_method_types: ["card_present"], capture_method: "manual"))
end

def subscribe(name: Pay.default_product_name, plan: Pay.default_plan_name, **options)
Expand Down

0 comments on commit f1995cd

Please sign in to comment.