(self, data, operation=False)
return self._proxy_adyen_request_direct(data, operation)
Necessary because Adyen's endpoints don't have CORS enabled
Necessary because Adyen's endpoints don't have CORS enabled
Necessary because Adyen s endpoints don t have CORS enabled
def proxy_adyen_request(self, data, operation=False):
        ''' Necessary because Adyen's endpoints don't have CORS enabled '''
        if data['SaleToPOIRequest']['MessageHeader']['MessageCategory'] == 'Payment': # Clear only if it is a payment request
            self.sudo().adyen_latest_response = ''  # avoid handling old responses multiple times

        if not operation:
            operation = 'terminal_request'

        return self._proxy_adyen_request_direct(data, operation)
def proxy_adyen_request ( self , data , operation = False ) : if data [ 'SaleToPOIRequest' ] [ 'MessageHeader' ] [ 'MessageCategory' ] == 'Payment' : # Clear only if it is a payment request self . sudo ( ) . adyen_latest_response = '' # avoid handling old responses multiple times if not operation : operation = 'terminal_request' return self . _proxy_adyen_request_direct ( data , operation )