Esempio n. 1
0
 def test_create_payment_with_wrong_payment_method(self, get_current_host):
     with self.assertRaises(PaymentException):
         order_payment = OrderPaymentFactory.create(payment_method="docdataIdeal", amount=Money(3500, XOF))
         adapter = VitepayPaymentAdapter(order_payment)
         adapter.create_payment()
Esempio n. 2
0
 def test_create_payment_with_wrong_payment_method(self, get_current_host):
     with self.assertRaises(PaymentException):
         order_payment = OrderPaymentFactory.create(payment_method='docdataIdeal',
                                                    amount=Money(3500, XOF))
         adapter = VitepayPaymentAdapter(order_payment)
         adapter.create_payment()