Skip to content

Commit

Permalink
cancel! actually uses the gateway to void
Browse files Browse the repository at this point in the history
  • Loading branch information
peterberkenbosch committed Feb 17, 2020
1 parent 4473b45 commit 80d2c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/solidus_affirm/checkout_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def items

private
def prepare_payments
@order.payments.where(source_type: 'SolidusAffirm::Checkout').pending.collect(&:void)
@order.payments.where(source_type: 'SolidusAffirm::Checkout').pending.collect(&:cancel!)
end
end
end

0 comments on commit 80d2c71

Please sign in to comment.