Member PayPal payments stuck at pending stage

I am using the default payment module but since upgrading to 7.3.2 any PayPal payments I receive remain as Pending with an Order ID instead of being Processed and automatically updating their profile membership.

Has anyone else experienced this and is there a fix for it?

Quote · 12 Aug 2016

I do know that changes were required for PayPal module to address an API change that will go into effect at PayPal in October.  The change had to do with https required for post processing or something along those lines.  I made a blog post about it if you want to try searching the forums.  I would go to your PayPal account and make sure you are correctly set up there as far as the IPN.  Go to your admin and the PayPal module and you will see the IPN url you need to place in PayPal, make sure that is correct.

Geeks, making the world a better place
Quote · 12 Aug 2016

The point is that in 7.3.2 there were some changes made to the PayPal module and these changes probably considered only the test sandbox version.

I have reported this to the developers but you can fix it now by editing the file modules\boonex\payment\classes\BxPmtPayPal.php on the following line:

 

else if(strcmp($aResponse['content'][1], "VERIFIED") != 0)


replace it with

 

else if(strcmp($aResponse['content'][0], "VERIFIED") != 0)

Quote · 13 Aug 2016

Hello 

Yes, you need to check the code which was pointed by Igor_L but also you need to take a look at function _readValidationData. It has the following line:

$sHeader = "POST /cgi-bin/webscr HTTP/1.1\r\n";

So, since Dolphin 7.3.2 it uses HTTP 1.1 which requires to check in $aResponse['content'][1]. In Dolphin 7.3.1 we used HTTP 1.0 and checked in $aResponse['content'][0]. I recommend you to check what exactly you have in both places and if you have 1 in both places (HTTP 1.1 and $aResponse['content'][1]) then the problem may be caused with something else. 

Quote · 17 Aug 2016

Hi AntonL

Are you saying that 7.3.1 should have [0] in both places and 7.3.2 should have [1] in both places?

Quote · 17 Aug 2016

Prior to the changes made to BxPmtPayPal.php in 7.3.2, the previous change was not until the 7.2.1 upgrade.

I have attached a screenshot of the differences in these two files but unfortunately I do not have the knowledge to see which part of the upgrade from 7.2.1 to 7.3.2 is causing the issue. Apart from Igor_L suggestion.

 

Igor_L's suggestion does fix the payment problem but the cart does not clear so when PayPal returns back to the cart page on my site, it confuses the hell out of the members because it looks as though their transaction has not actually gone through causing them to pay twice.

Screenshot-payment-module.jpg · 503.3K · 345 views
Quote · 17 Aug 2016

Hello 

Hi AntonL

Are you saying that 7.3.1 should have [0] in both places and 7.3.2 should have [1] in both places?

Yes, 7.3.1 and early versions have 0, and 7.3.2 has 1 in both cases.

 

Prior to the changes made to BxPmtPayPal.php in 7.3.2, the previous change was not until the 7.2.1 upgrade.

I have attached a screenshot of the differences in these two files but unfortunately I do not have the knowledge to see which part of the upgrade from 7.2.1 to 7.3.2 is causing the issue. Apart from Igor_L suggestion.

 

Igor_L's suggestion does fix the payment problem but the cart does not clear so when PayPal returns back to the cart page on my site, it confuses the hell out of the members because it looks as though their transaction has not actually gone through causing them to pay twice.

I checked the screenshot and as I see you have the correct values in the right side.

Shopping cart should be automatically cleared when data about correctly accepted payment is returned from payment provider. It means that if pending order was automatically processed and appeared in processed orders then all items related to this pending should be automatically removed from member's shopping cart. If it doesn't work this way then I would need to check your site to be able to give you some answer about the reason.

Quote · 22 Aug 2016

Having my own issues with PayPal integration and looks like many have struggled thru it as well. I ran a test charge upgrading from promotional to a paid member. The first one paid fine thru PayPal but when it returned the screen gave a "no data returned" error and it never upgraded the membership

 

That was set using "direct" so I figured I'd try "IPN" which again the payment went thru for PayPal just fine but when it returned the page still showed the shopping cart with selected membership and I can find that order anywhere in Boonex side.

 

Any quick and timely and experienced help would be tremendously appreciated. 

Quote · 5 Apr 2017

Hello 

Having my own issues with PayPal integration and looks like many have struggled thru it as well. I ran a test charge upgrading from promotional to a paid member. The first one paid fine thru PayPal but when it returned the screen gave a "no data returned" error and it never upgraded the membership

 

That was set using "direct" so I figured I'd try "IPN" which again the payment went thru for PayPal just fine but when it returned the page still showed the shopping cart with selected membership and I can find that order anywhere in Boonex side.

 

Any quick and timely and experienced help would be tremendously appreciated. 

Looks like you  are using different modes in your PayPal account and in Dolphin Payments. For example, you shouldn't enable IPN in PayPal if you are using Direct mode in Dolphin Payments. Even more if you want to use Pay Before Join mode then you cannot use IPN mode at all. This feature is working in Direct mode only. You may read more about Payments in Dolphin here.

Quote · 6 Apr 2017

 

Looks like you  are using different modes in your PayPal account and in Dolphin Payments. For example, you shouldn't enable IPN in PayPal if you are using Direct mode in Dolphin Payments. Even more if you want to use Pay Before Join mode then you cannot use IPN mode at all. This feature is working in Direct mode only. You may read more about Payments in Dolphin here.

 @AntonL

 

Thanks. Perhaps you can clarify which method I should be using to accomplish the desired result. I have paid memberships set up and when a member selects one and pays it properly connects and pays thru PayPal and returns to my dolphin site. However it isn't triggering the membership change/upgrade.

 

Quote · 7 Apr 2017

For the easiest configuration, try to setup in Direct mode, however IPN is more advisable if you aren't using "pay before join" feature. For all the instructions for particular configuration please refer to this doc:

https://www.boonex.com/trac/dolphin/wiki/DolPaymentMod

Thanks. Perhaps you can clarify which method I should be using to accomplish the desired result. I have paid memberships set up and when a member selects one and pays it properly connects and pays thru PayPal and returns to my dolphin site. However it isn't triggering the membership change/upgrade.

 

Rules → http://www.boonex.com/terms
Quote · 10 Apr 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.