def notify(self, payload, get_price, prices=None): get_price.return_value = (prices or { 'prices': [{ 'price': '0.99', 'currency': 'USD' }] }) tasks.simulate_notify(self.payment_issuer, payload, trans_uuid=self.trans_uuid)
def notify(self, payload, get_price, prices=None): get_price.return_value = ( prices or {'prices': [{'price': '0.99', 'currency': 'USD'}]}) tasks.simulate_notify('issuer-key', payload, trans_uuid=self.trans_uuid)
def notify(self, payload): tasks.simulate_notify('issuer-key', payload, trans_uuid=self.trans_uuid)