Skip to content

Commit

Permalink
Fix handling of provider_customer_id
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet committed Dec 3, 2024
1 parent d63c875 commit 06bacfa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 105 deletions.
2 changes: 1 addition & 1 deletion app/services/invoices/payments/cashfree_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def increment_payment_attempts

def deliver_error_webhook(cashfree_error)
DeliverErrorWebhookService.call_async(invoice, {
provider_customer_id: customer.cashfree_customer.provider_customer_id,
provider_customer_id: customer.cashfree_customer.id,
provider_error: {
message: cashfree_error.error_body,
error_code: cashfree_error.error_code
Expand Down
103 changes: 0 additions & 103 deletions app/services/payment_provider_customers/create_service.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/services/payment_requests/payments/cashfree_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def create_payment(cashfree_payment)

def deliver_error_webhook(cashfree_error)
DeliverErrorWebhookService.call_async(payable, {
provider_customer_id: customer.cashfree_customer.provider_customer_id,
provider_customer_id: customer.cashfree_customer.id,
provider_error: {
message: cashfree_error.error_body,
error_code: cashfree_error.error_code
Expand Down

0 comments on commit 06bacfa

Please sign in to comment.