class Adyen::API::PaymentService::ModificationResponse

Attributes

base_xpath[RW]

@private

request_received_value[RW]

@private

Public Instance Methods

params() click to toggle source
    # File lib/adyen/api/payment_service.rb
374 def params
375   @params ||= xml_querier.xpath(self.class.base_xpath) do |result|
376     {
377       :psp_reference  => result.text('./payment:pspReference'),
378       :response       => result.text('./payment:response')
379     }
380   end
381 end
success?() click to toggle source

This only returns whether or not the request has been successfully received. Check the subsequent notification to see if the payment was actually mutated.

Calls superclass method
    # File lib/adyen/api/payment_service.rb
370 def success?
371   super && params[:response] == self.class.request_received_value
372 end