mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
documentation
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# When directing a customer to Stripe to authorize the payment, we specify a
|
||||
# redirect_url that Stripe should return them to. When checking out, it's
|
||||
# /checkout; for admin payments and subscription payemnts it's the order url.
|
||||
# This class confirms that the payment intent matches what's in our database,
|
||||
# marks the payment as complete, and removes the cvv_response_message field,
|
||||
# which we use to indicate that authorization is required. It also completes the
|
||||
# Order, if appropriate.
|
||||
|
||||
class ProcessPaymentIntent
|
||||
def initialize(payment_intent, order)
|
||||
@payment_intent = payment_intent
|
||||
|
||||
Reference in New Issue
Block a user