diff --git a/demos/paymentDirect/payment.php b/demos/paymentDirect/payment.php
index <HASH>..<HASH> 100644
--- a/demos/paymentDirect/payment.php
+++ b/demos/paymentDirect/payment.php
@@ -50,10 +50,10 @@ try {
     // payment type as CARD
     $payIn->PaymentDetails = new \MangoPay\PayInPaymentDetailsCard();
     $payIn->PaymentDetails->CardType = $card->CardType;
+    $payIn->PaymentDetails->CardId = $card->Id;
 
     // execution type as DIRECT
     $payIn->ExecutionDetails = new \MangoPay\PayInExecutionDetailsDirect();
-    $payIn->ExecutionDetails->CardId = $card->Id;
     $payIn->ExecutionDetails->SecureModeReturnURL = 'http://test.com';
 
     // create Pay-In
set cardId on PaymentDetails in place of ExecutionDetails

As CardId is not a property of PayInExecutionDetailsDirect but is property of PayInPaymentDetailsCard