I am using PayPal with php. Now, Working fine.And I pay money from pay with card option. payment transaction successfully. and redirect return page(success.php). how to get payment pay with card or PayPal balance in return page using php.
This is My code
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="business@gmail.com">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="2 Year Renewal">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="currency_code" value="AUD">
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif"
alt="Buy Now">
<img alt="" border="0" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
<input type="hidden" name="notify_url" value="<?php echo $data['notify_url'];?> " />
<input type="hidden" name="cancel_return" value="<?php echo $data['cancel_url'];?> " />
<input type="hidden" name="return" value="<?php echo $data['thanks_page']; ?> " />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="lc" value="AU" />
<input type="hidden" name="no_shipping" value="1" />
</form>
Return Page:
(
[payer_email] => buyer@gmail.com
[payer_id] => XADXRF36L2DHQ
[payer_status] => VERIFIED
[first_name] => test
[last_name] => buyer
[txn_id] => 2NF95194JB933370U
[mc_currency] => INR
[mc_fee] => 4.01
[mc_gross] => 100.00
[protection_eligibility] => ELIGIBLE
[payment_fee] => 4.01
[payment_gross] => 100.00
[payment_status] => Completed
[payment_type] => instant
[item_name] => 2 Year Renewal
[quantity] => 1
[txn_type] => web_accept
[payment_date] => 2018-06-01T04:19:47Z
[business] =>facilitator@gmail.com
[receiver_id] => 3BDTV5MC4UZF2
[notify_version] => UNVERSIONED
[verify_sign] => AbVCh9-TcGBdtBlzyTcVD7i65CtwArlT2VoQXx2qzEi1Zy2z7vFX3xJZ
)