diff --git a/app/services/invoices/payments/cashfree_service.rb b/app/services/invoices/payments/cashfree_service.rb index 49842b1f0e6..1dd3fa2b0fa 100644 --- a/app/services/invoices/payments/cashfree_service.rb +++ b/app/services/invoices/payments/cashfree_service.rb @@ -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 diff --git a/app/services/payment_requests/payments/cashfree_service.rb b/app/services/payment_requests/payments/cashfree_service.rb index 792704c5454..d525bc13a40 100644 --- a/app/services/payment_requests/payments/cashfree_service.rb +++ b/app/services/payment_requests/payments/cashfree_service.rb @@ -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