Created
May 18, 2017 15:14
-
-
Save winzard/c78db2f8a7b584741b22bc8825ca7eae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reference = cash_gateway.create_transaction(order_number, total) | |
| source_type, is_created = SourceType.objects.get_or_create(name=u'Оплата наличными') | |
| source = Source( | |
| source_type=source_type, | |
| currency=total.currency, | |
| amount_allocated=total.incl_tax, | |
| amount_debited=0 | |
| ) | |
| self.add_payment_source(source) | |
| self.add_payment_event(u'Запрос', total.incl_tax, reference=reference) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment