Does anyone here know how to refund money to users payed from my e-commerce site orders?
I mean .. I can surely go to my PP business account to 开发者_StackOverflow社区refund them manually, but I would like to know if PP API supports some kind of dynamic refund directly from my site..
It looks possible read this.
PayPal API Docs
you can use below code and API for your task.
$nvpStr = "&TRANSACTIONID=$transactionID&REFUNDTYPE=$refundType&CURRENCYCODE=$currencyID";
and then call this function:
$httpParsedResponseAr = PPHttpPost('RefundTransaction', $nvpStr);
for more details regarding that you can use below link : https://cms.paypal.com/cms_content/US/en_US/files/developer/nvp_RefundTransaction_php.txt
精彩评论