Jump to:
| Project: | lm_paypal |
| Version: | 6.x-2.x-dev |
| Component: | LM Paypal Donations |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I try to use lm_paypal_donation with www.sandbox.paypal.com and lm_paypal-6.x-2.x-dev of july 18th 2010
I created sandbox's test accounts (buyer and seller), set my buyer account mail in lm_paypal settings and checked "LM PayPal Obey Test IPNS" and "LM PayPal Debug"
I created a page with the lm_paypal_donate function like this:
<?php
if (function_exists('lm_paypal_donate')) {
print lm_paypal_donate(array(5), 'EUR', 'Donation','https://www.paypal.com/fr_FR/i/btn/btn_donate_LG.gif','Veuillez inscrire la somme du don que vous souhaitez realiser','/lm_paypal/donations_thanks') .'<br>';
}
?>When i click on the paypal button, it's work great. I can do my payment and I'm redirected on the donation thanks page.
The IPNs are well registred in the saved IPNs list.
But there is no donations registred on the donations list.
I've the debug message "IPN incoming NOT VERIFIED web_accept" in my log entries.
What is the problem?
Do i miss something? could you help me please ?
Comments
#1
any updates on this plz ... ? bump ...
#2
finally i created a thanks page with this php code:
<?php//foreach ($_POST as $key => $value) { echo "$key: $value<br>"; }
global $user;
if (isset($_POST[mc_gross]) == TRUE){
_lm_paypal_process_in_donate($_POST, 'http://xxxxx.com/lm_paypal/ipn', $user->uid, '', '');
print 'Merci.<br>Votre don de '. $_POST[mc_gross].' a été enregistré sous l\'adresse mail '. $_POST[payer_email].'<br> Soyez assuré que nous en ferons bon usage';
}
?>
it solved my problem and the donations are registred.
#3
The socket validation for the incoming IPN is not up to date.
<?php$fp = fsockopen($_lm_paypal_host, 80, $errno, $errstr, LM_PAYPAL_VALIDATE_TIMEOUT);
?>
The port should be 443 and the host should start with 'ssl://'
#4
I was doing the same thing but my problem was that I needed to create a sandbox "business" account and use that to send the money to. then it verified.