Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError in spree/admin/payments#create #13069

Open
mkllnk opened this issue Jan 12, 2025 · 1 comment
Open

NoMethodError in spree/admin/payments#create #13069

mkllnk opened this issue Jan 12, 2025 · 1 comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. bugsnag

Comments

@mkllnk
Copy link
Member

mkllnk commented Jan 12, 2025

Error in Open Food Network (Rails)

NoMethodError in spree/admin/payments#create
undefined method `gateway_payment_profile_id' for nil:NilClass

  Stripe::PaymentMethod.retrieve(card.gateway_payment_profile_id).card.fingerprint
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

View on Bugsnag

Stacktrace

lib/stripe/credit_card_clone_finder.rb:34 - fingerprint_for_card
lib/stripe/credit_card_clone_finder.rb:11 - find_cloned_card
lib/stripe/credit_card_cloner.rb:28 - find_or_clone
app/models/spree/gateway/stripe_sca.rb:142 - options_for_authorize
app/models/spree/gateway/stripe_sca.rb:80 - authorize
app/models/spree/payment/processing.rb:223 - public_send
app/models/spree/payment/processing.rb:223 - block in gateway_action
app/models/spree/payment/processing.rb:261 - protect_from_connection_error
app/models/spree/payment/processing.rb:220 - gateway_action
app/models/spree/payment/processing.rb:25 - authorize!
engines/order_management/app/services/order_management/order/stripe_sca_payment_authorize.rb:23 - call!
app/controllers/spree/admin/payments_controller.rb:179 - authorize_stripe_sca_payment
app/controllers/spree/admin/payments_controller.rb:41 - create

View full stacktrace

Created by OFN UK Dev via Bugsnag

@mkllnk mkllnk added the bugsnag label Jan 12, 2025
@github-project-automation github-project-automation bot moved this to All the things 💤 in OFN Delivery board Jan 12, 2025
@drummer83 drummer83 added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Jan 12, 2025
@drummer83
Copy link
Contributor

I've discovered this while testing release v5.0.10, comment here.

To reproduce:

  1. As (super) admin create a back office order.
  2. Select Stripe as payment method.
  3. Enter a credit card number, validity and security code.
  4. Press ENTER (don't click Update).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. bugsnag
Projects
Status: All the things 💤
Development

No branches or pull requests

2 participants