payment_status=Pending is not processed
-
Hello,
Due security reasons Paypal lock some recurring payments (about 21 days) to be sure that the seller have enough funds in case of complaints.
In fact the locked payments are confirmed (The money is already owned by the seller) but Paypal send IPN with payment_status=Pending.The issue is that the recurring payments are not processed, the webpage receive IPN but the hook ‘pmpro_subscription_payment_completed’ not work. Normally work with IPN and payment_status=Completed.
I see that in the file ipnhandler.php the code only process payment_status=Completed
//PayPal Express Recurring Payments if ( $txn_type == "recurring_payment" ) { $last_subscription_order = new MemberOrder(); if ( $last_subscription_order->getLastMemberOrderBySubscriptionTransactionID( $subscr_id ) ) { //subscription payment, completed or failure? if ( $_POST['payment_status'] == "Completed" ) { pmpro_ipnSaveOrder( $txn_id, $last_subscription_order ); } elseif ( $_POST['payment_status'] == "Failed" ) { pmpro_ipnFailedPayment( $last_subscription_order ); } else { ipnlog( 'Payment status is ' . $_POST['payment_status'] . '.' ); } } else { ipnlog( "ERROR: Couldn't find last order for this recurring payment (" . $subscr_id . ")." ); } pmpro_ipnExit(); }Could you tell me something about and if PmPro can process payment_status=Pending for recurring payments?
Many thanks!
The topic ‘payment_status=Pending is not processed’ is closed to new replies.