Showing results for 
Search instead for 
Did you mean: 

How to integrate 3D (PSD2) secure payment authentication with PayPal in PHP

Posted on

I've a PayPal payment get-way like this,


<form action="" method="post" name="paypal" id="paypal">
    <!-- Prepopulate the PayPal checkout page with customer details, -->    
<input type="hidden" name="first_name" value="
<?php echo Firstname?>"> <input type="hidden" name="last_name" value="<?php echo Lastname?>"> <input type="hidden" name="email" value="<?php echo Email?>"> <input type="hidden" name="address1" value="<?php echo Address?>"> <input type="hidden" name="address2" value="<?php echo Address2?>"> <input type="hidden" name="city" value="<?php echo City?>"> <input type="hidden" name="zip" value="<?php echo Postcode?>"> <input type="hidden" name="day_phone_a" value="">
<input type="hidden" name="day_phone_b" value="
<?php echo Mobile?>"> <!-- We don't need to use _ext-enter anymore to prepopulate pages --> <!-- cmd = _xclick will automatically pre populate pages --> <!-- More information: --> <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="my_email" /> <input type="hidden" name="cbt" value="Return to Your Business Name" /> <input type="hidden" name="currency_code" value="GBP" /> <!-- Allow the customer to enter the desired quantity --> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="item_name" value="Name of Item" /> <!-- Custom value you want to send and process back in the IPN -->
<input type="hidden" name="custom" value="
<?php echo session_id().?>" /> <input type="hidden" name="shipping" value="<?php echo $shipping_price; ?>" /> <input type="hidden" name="invoice" value="<?php echo $invoice_id ?>" /> <input type="hidden" name="amount" value="<?php echo $total_order_price; ?>" /> <input type="hidden" name="return" value="http://<?php echo $_SERVER['SERVER_NAME']?>/shop/paypal/thankyou"/> <input type="hidden" name="cancel_return" value="http://<?php echo $_SERVER['SERVER_NAME']?>/shop/paypal/cancelled" /> <!-- Where to send the PayPal IPN to. -->
<input type="hidden" name="notify_url" value="http://
<?php echo $_SERVER['SERVER_NAME']?>/shop/paypal/process" />


Now, is there anything to do with the new payment get-way? The PSD2 ?

If so, how could I integrate it?

Please help. I don't find any good reference. Thanks in advance.


Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.