nette-paypal icon indicating copy to clipboard operation
nette-paypal copied to clipboard

Orders are stuck on "pending" status

Open JanMikes opened this issue 8 years ago • 6 comments

Hello, everything seem to be fine, but payments are stuck as "pending" and there are nothing to do with them.

Have you guys have same issue and possibly how have u solved this? I am not sure if this is related to the library or something is wrong with the paypal account.

JanMikes avatar Jun 01 '16 08:06 JanMikes

Are you calling confirmExpressCheckout method as suggested in your comment on different issue?

fmasa avatar Jun 01 '16 18:06 fmasa

Yep. As well I can see the order in both customer's and seller's accounts, but it is has "Pending" status and money are not transfered.

It seem to me that is is PayPal account settings related, not the library bug, so if you had any tips i would be grateful.

JanMikes avatar Jun 02 '16 05:06 JanMikes

I added logging before calling confirmExpressCheckout():

public function confirmOrder($control, $data)
{
    \Tracy\Debugger::log($data, "confirm-order");
    $control->confirmExpressCheckout();
}

I have noticed following data in all results, it might be the issue?

billingagreementacceptedstatus => "0"
checkoutStatus => "PaymentActionNotInitiated" (25)

JanMikes avatar Jun 02 '16 05:06 JanMikes

@Lexinek its because you are doing purchase in different currency than its set in your paypal merchant account

michalhlavka avatar Jun 28 '16 08:06 michalhlavka

@michallhlavka that is actually not true

Anyways since this was big problem for me (receiving no money on merchant's account and having all payments as pending) and i was not able to find the reason causing it, i changed implementation to use metisfw/paypal library and everything is working for me now.

JanMikes avatar Jun 28 '16 08:06 JanMikes

@Lexinek ok, thanks for reaction, I will take a look at metisfw

michalhlavka avatar Jun 28 '16 09:06 michalhlavka