From 07688feca0437c36e77f99fd0300589ce2cf4749 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Mon, 2 Dec 2024 17:48:49 +0100 Subject: [PATCH] Fix handling of provider_customer_id --- app/services/invoices/payments/cashfree_service.rb | 2 +- app/services/payment_requests/payments/cashfree_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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