diff --git a/app/controllers/spree/adyen_notifications_controller.rb b/app/controllers/spree/adyen_notifications_controller.rb index 3d40c2d7..be00e69d 100644 --- a/app/controllers/spree/adyen_notifications_controller.rb +++ b/app/controllers/spree/adyen_notifications_controller.rb @@ -31,7 +31,7 @@ def authenticate private def accept - render text: "[accepted]" + render plain: "[accepted]" end def notification_exists? params diff --git a/app/models/spree/gateway/adyen_credit_card.rb b/app/models/spree/gateway/adyen_credit_card.rb index 53c0f181..b022c76f 100644 --- a/app/models/spree/gateway/adyen_credit_card.rb +++ b/app/models/spree/gateway/adyen_credit_card.rb @@ -78,7 +78,9 @@ def perform_authorization payment ) elsif payment.source.has_payment_profile? rest_client.reauthorise_recurring_payment( - authorization_request(payment, false) + authorization_request(payment, false).merge!( + selected_recurring_detail_reference: payment.source.gateway_customer_profile_id + ) ) else raise EncryptedDataError