|
8 | 8 | RecurringPayInRegistration, \
|
9 | 9 | RecurringPayInCIT, PayInRefund, RecurringPayInMIT, CardPreAuthorizedDepositPayIn, MbwayPayIn, PayPalWebPayIn, \
|
10 | 10 | GooglePayDirectPayIn, MultibancoPayIn, SatispayPayIn, BlikPayIn, KlarnaPayIn, IdealPayIn, GiropayPayIn, \
|
11 |
| - CardRegistration, BancontactPayIn, SwishPayIn |
| 11 | + CardRegistration, BancontactPayIn, SwishPayIn, PayconiqV2PayIn |
12 | 12 | from mangopay.utils import (Money, ShippingAddress, Shipping, Billing, Address, SecurityInfo, ApplepayPaymentData,
|
13 | 13 | GooglepayPaymentData, DebitedBankAccount, LineItem, CardInfo)
|
14 | 14 | from tests import settings
|
@@ -1871,3 +1871,30 @@ def test_RecurringPayment_CheckCardInfo(self):
|
1871 | 1871 | mit_card_info = created_mit['card_info']
|
1872 | 1872 | self.assertIsNotNone(mit_card_info)
|
1873 | 1873 | self.assertIsInstance(mit_card_info, CardInfo)
|
| 1874 | + |
| 1875 | + def test_PayIns_Payconiq_Web_Create(self): |
| 1876 | + user = BaseTestLive.get_john(True) |
| 1877 | + |
| 1878 | + # create wallet |
| 1879 | + credited_wallet = Wallet() |
| 1880 | + credited_wallet.owners = (user,) |
| 1881 | + credited_wallet.currency = 'EUR' |
| 1882 | + credited_wallet.description = 'WALLET IN EUR' |
| 1883 | + credited_wallet = Wallet(**credited_wallet.save()) |
| 1884 | + |
| 1885 | + payin = PayconiqV2PayIn() |
| 1886 | + payin.credited_wallet = credited_wallet |
| 1887 | + payin.author = user |
| 1888 | + payin.debited_funds = Money(amount=10000, currency='EUR') |
| 1889 | + payin.fees = Money(amount=0, currency='EUR') |
| 1890 | + payin.return_url = 'https://test.com' |
| 1891 | + payin.country = 'BE' |
| 1892 | + result = PayconiqV2PayIn(**payin.save()) |
| 1893 | + |
| 1894 | + self.assertIsNotNone(result) |
| 1895 | + self.assertEqual("CREATED", result.status) |
| 1896 | + self.assertEqual("REGULAR", result.nature) |
| 1897 | + self.assertEqual("WEB", result.execution_type) |
| 1898 | + self.assertEqual("PAYCONIQ", result.payment_type) |
| 1899 | + self.assertIsNotNone(result.deep_link_url) |
| 1900 | + self.assertIsNotNone(result.qr_code_url) |
0 commit comments