solidus_mp_dois 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 178d8a185c0cafe8fa3256b2d1d1af0f3a0118bf5bf1b87e8e3af5cbe19a2954
4
- data.tar.gz: c2b7f34d1dd4fd768d9cc3d2efdbb4497316f81378c1eb381d322ce1ee4d4c2a
3
+ metadata.gz: 3ef2fa49df844734490eb7c4912db4c6aa14bb0037d565d40b49da807b98f3f9
4
+ data.tar.gz: 0da965106cad89a3bcbddf700d478b97c46912aee3e4258ed0d91ee23b5f7a98
5
5
  SHA512:
6
- metadata.gz: 7e90c59e19923a322ad0cc606a7eb4392bde64ba92b4696d3bd2090069222bf7f3ef38ae32f63b36c49da770c1135393d957304198a2b8172848915de7630f36
7
- data.tar.gz: 4221ea9ecf6f4035a09e685fd6b3b0398803907bd804ba5eedccbeba2d4e02829f8c558ad176d590e1634232d759912336da8da18990c20c9103755306655313
6
+ metadata.gz: ae40530d725c8796fca238eef00fea5d913f69a064641c166fe468c18aed72af64ad071cecd122cdba9bf5ce23fac16341d4f4377af814f21f2f631cbf3eea92
7
+ data.tar.gz: cb9220addf8259b26d5383399f159ebae2e5d0c63b4a398e3e7a71692e10be494fb3edef414f8cafb6e9b79ca6cfdacaed221b05600259d05c9347dc1a8bd065
@@ -177,7 +177,7 @@ module SolidusMpDois
177
177
  error_message = mp_payment.error || mp_payment.status_detail || "Erro ao criar o pagamento"
178
178
  response = failure_response(error_message)
179
179
  payment.log_entries.create(parsed_payment_response_details_with_fallback: response)
180
- payment.source.cancel!(mp_payment.id) if mp_payment.id.present? && mp_payment.status_detail == "pending_review_manual"
180
+ payment.source.cancel(mp_payment.id) if mp_payment.id.present? && mp_payment.status_detail == "pending_review_manual"
181
181
  payment.source.update(internal_error: error_message, status: "error", internal_details: mp_payment.status_detail)
182
182
  end
183
183
 
@@ -1,4 +1,4 @@
1
- class RemoveSolidusMpDoisCustomerForeignKey < ActiveRecord::Migration[8.0]
1
+ class RemoveSolidusMpDoisCustomerForeignKey < ActiveRecord::Migration[7.1]
2
2
  def change
3
3
  # Removi a foreign key com a tabela spree_users pois atualmente algumas lojas usam modelos diferentes (User e Spree::User)
4
4
  remove_foreign_key :solidus_mp_dois_customers, :spree_users
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_mp_dois
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas