Index: /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/paypal.py
===================================================================
--- /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/paypal.py	(revision 12493)
+++ /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/paypal.py	(revision 12494)
@@ -72,4 +72,5 @@
 STOCK_KEEPING_UNITS = {
     "pcs": _("pieces"),
+    "license": _("license"),
     }
 
@@ -1121,4 +1122,22 @@
 
 
+class StandardItemAdapter(grok.Adapter):
+    grok.implements(ITransaction)
+    grok.adapts(IPaymentItem)
+
+
+def payment_item_to_transaction(item):
+    """Turn an IPaymentItem into an ITransaction
+    """
+    amount = Amount(currency=item.currency, total=item.amount)
+    description = item.title
+    item = Item(name=item.title, price=item.amount, currency=item.currency,
+                quantity=1, sku=_("license"))
+    item_list = ItemList(items=[item, ])
+    transaction = Transaction(
+        amount=amount, description=description, item_list=item_list)
+    return transaction
+
+
 class PayPalCreditCardService(grok.GlobalUtility):
     grok.implements(IPaymentGatewayService)
@@ -1179,5 +1198,19 @@
         if credit_card is None:
             raise ValueError("Payer %s has no credit card." % payer.payer_id)
-        return None
+        transaction = payment_item_to_transaction(payment_item)
+        payment_dict = {
+            "intent": "sale",
+            "payer": {
+                "payment_method": "credit_card",
+                "funding_instruments": [{
+                    "credit_card_token": {
+                        "credit_card_id": credit_card.credit_card_id,
+                        "payer_id": payer.payer_id,
+                        }}]},
+            "transactions": [
+                transaction.to_dict()]
+            }
+        payment = paypalrestsdk.Payment(payment_dict)
+        return payment
 
 
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 12493)
+++ /main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests/test_paypal.py	(revision 12494)
@@ -1198,4 +1198,20 @@
         assert exception.message == 'Payer PAYER-123 has no credit card.'
 
+    @external_paypal_test
+    def test_create_payment(self):
+        # we can actually create payments
+        service = PayPalCreditCardService()
+        site = self.create_site()
+        credit_card = self.get_credit_card()
+        result = service.store_credit_card(credit_card)
+        payer_id = result.payer_id
+        payer = FakePayer()
+        payer.payer_id = result.payer_id
+        payment_item = FakePaymentItem()
+        payment = service.create_payment(
+            payer=payer, payment_item=payment_item)
+        result = payment.create()
+        assert result is True
+
 
 class FunctionalPaypalTests(FunctionalTestCase):
