lib/offsite_payments/integrations/paypal.rb
# When was this payment received by the client.
# sometimes it can happen that we get the notification much later.
# One possible scenario is that our web application was down. In this case paypal tries several
# times an hour to inform us about the notification
When was this payment received by the client.
sometimes it can happen that we get the notification much later.
One possible scenario is that our web application was down. In this case paypal tries several
times an hour to inform us about the notification
When was this payment received by the client . sometimes it can happen that we get the notification much later . One possible scenario is that our web application was down . In this case paypal tries several times an hour to inform us about the notification
def received_at
          parsed_time_fields = DateTime._strptime(params['payment_date'], "%H:%M:%S %b %d, %Y %Z")
          Time.gm(
            parsed_time_fields[:year],
            parsed_time_fields[:mon],
            parsed_time_fields[:mday],
            parsed_time_fields[:hour],
            parsed_time_fields[:min],
            parsed_time_fields[:sec]
          ) - Time.zone_offset(parsed_time_fields[:zone])
        end
def received_at parsed_time_fields = DateTime . _strptime ( params [ 'payment_date' ] , "%H:%M:%S %b %d, %Y %Z" ) Time . gm ( parsed_time_fields [ :year ] , parsed_time_fields [ :mon ] , parsed_time_fields [ :mday ] , parsed_time_fields [ :hour ] , parsed_time_fields [ :min ] , parsed_time_fields [ :sec ] ) - Time . zone_offset ( parsed_time_fields [ :zone ] ) end
When was this payment received by the client.
When was this payment received by the client .