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 6, 2024
1 parent 8c5c024 commit 07688fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
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 07688fe

Please sign in to comment.