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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ef2fa49df844734490eb7c4912db4c6aa14bb0037d565d40b49da807b98f3f9
|
4
|
+
data.tar.gz: 0da965106cad89a3bcbddf700d478b97c46912aee3e4258ed0d91ee23b5f7a98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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[
|
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
|