Index: main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests/test_paypal.py
===================================================================
--- main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests/test_paypal.py	(revision 12453)
+++ main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests/test_paypal.py	(revision 12454)
@@ -1156,12 +1156,31 @@
         assert service.get_credit_card(u'CARD2') is None
 
-    def test_store_credit_card_no_credcard_container(self):
-        # a missing creditcards container is created on-the-fly
+    @external_paypal_test
+    def test_store_credit_card(self):
+        # we can (and must) store credit card data online.
         site = self.create_site()
         assert 'creditcards' not in site
         service = PayPalCreditCardService()
         credit_card = self.get_credit_card()
-        service.store_credit_card(credit_card)
+        result = service.store_credit_card(credit_card)
+        # a missing creditcards container is created on-the-fly
         assert 'creditcards' in site
+        assert ICreditCardToken.providedBy(result)
+        assert result.payer_id in site['creditcards']
+        assert site['creditcards'][result.payer_id] == result
+
+    @external_paypal_test
+    def test_store_credit_card_invalid(self):
+        # an exception is raised with invalid credit cards.
+        site = self.create_site()
+        service = PayPalCreditCardService()
+        credit_card = CreditCard(
+            number=u"12345678",
+            credit_card_type="visa",
+            expire_month=4,
+            expire_year=2012,
+            )
+        self.assertRaises(
+            IOError, service.store_credit_card, credit_card)
 
     def test_create_payment_no_credictard(self):
