-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot reach approved status #15
Comments
another case of having |
Is the payment actually approved by PayPal? |
yes it does. If I can go to the sandbox and login as a buyer. I see that the requested amount of money was sent to the customer. In my case the problem come because I use EUR as a currency to pay but the buyer account don't have moneys in EUR only on USD so the payapl should convert money (that's why it returns pending status and multi-currency reason). http://www.khokhar.info/2010/10/03/paypal-ipn-pending-because-of-multi_currency-issue/ Another case when the payment cannot be finished at the request: when the buyer doesn't have enough money at that moment (but he can finish it manually when he has money). so we have to check the state of payment from paypal If I try to request details on payment after the payment is "finished" I am getting the code I propose above solve my problem I can fetch pending payments and recheck their state. Actually I dont know whether it is right or not. I want to discuss it with you what would be the best way to handle such situation. |
http://stackoverflow.com/questions/2433329/possible-payment-status-values from there:
|
I think it makes sense to keep the payment's state on "APPROVING" as long as the PayPal transaction is "PENDING" as there is still a chance that it might not complete successfully. If you still want to go ahead in your application, you could check the reason code to see why it is still in APPROVING state. However, it should also be possible to finally move the payment to APPROVED if the transaction moves to COMPLETED. If I understand you correctly, this is not possible right now. |
yes, it is not possible, I will try to solve it. |
any news on this? |
I got the And I can actually login to my buyer test account, add some money, and complete the payment later in Paypal's control panel. I don't know how to handle this. Does it means we should implement IPN? |
IPN is a different topic that we can consider to implement. Actually, a patch for this would be appreciated. We also might introduce the listener system that I had in the jmsPaymentPlugin for symfony 1.4 then. |
I haven't had a chance to do it |
I have found the way |
I've just found |
Yeah, that can be used as well to update the payment's status, but it would have to be initiated from our end. In addition, or alternatively, we can use IPN. Then, Paypal initiates the change which should be faster: For both, solutions we need to add some events though. So that, people can update their order statuses. |
what about to create a cli command which can fetch pending payments and try to update them using The update payment metod should be implemented in |
Basically, any payment could change it's status. I think we would need to implement some filter in the CLI command, but in general, a CLI command is a good idea. |
It is not clean and good solution but might help someone to manage pendings: https://gist.github.com/2477272 |
Part of the problem is definitely CHECKOUTSTATUS should be PaymentActionCompleted and not PaymentCompleted: Not sure if this alone solves the problem though! |
Would you mind posting the links to the respective parts of the PayPal On Wed, Oct 3, 2012 at 12:36 PM, hifi7 [email protected] wrote:
|
Couldn't find anything on this in the documentation but as others already reported (see also schmittjoh/JMSPaymentCoreBundle#25) this response actually comes up: Adding PaymentActionCompleted seems to work but I'm not completely sure..still working on it. |
@schmittjoh @hacfl - I ran in to this same issue today with requestGetExpressCheckoutDetails returning PaymentActionCompleted as the value for CHECKOUTSTATUS. Unfortunately PayPal's documentation is all over the place and there's no clear picture as to what's up to date. However, here's the documentation supporting PaymentActionCompleted as a valid response: https://www.x.com/developers/paypal/documentation-tools/api/getexpresscheckoutdetails-api-operation-nvp I've modified the bundle in my fork to accept PaymentActionComplete in the switch statement on L165 of ExpressCheckoutPlugin. I'll tidy up the code an submit a pull request. For the time being I've left the check for 'PaymentCompleted' in place because that is also documented in other disparate PayPal documentation. |
"Part of the problem is definitely CHECKOUTSTATUS should be PAYPAL Documentation https://developer.paypal.com/docs/classic/api/merchant/GetExpressCheckoutDetails_API_Operation_NVP/ |
It is often the paypal payment
$this->requestDoExpressCheckoutPayment
is finished with these:so the code
is never executed and I cannot finish the payment.
If I tried to call
aproveAndDeposit
once again therequestGetExpressCheckoutDetails
method returns checkout status:which is not supported.
what about to add:
The text was updated successfully, but these errors were encountered: