Open prugala opened 6 months ago
Hello, PENDING is a regular order state and can last really long. You have two options:
a) Implement asynchronous notification mechanism
If you set notifyUrl
parameter while creating an order, PayU will call this URL with every status change.
b) Actively wait for the order to be finished You can call OpenPayU_Order::retrieve in some smart cycle (let's say every 5 seconds, up to 30 seconds). But be beware, that finishing the order can take much longer! I've seen 5 minutes interval even with Apple Pay in real life. So you still need to handle longer payments in some asynchronous way.
Hello.
In $response
should be redirect url to 3DS, you need to redirect to it.
@peterpp @regdos thank you for you response. I'm using sandbox card 4444333322221111 and there is no 3DS. In response don't have redirectUri property.
Im checking status with OpenPayU_Order::retrieve
after 10-15 minutes and still is pending
Example orderId: X46VN8NSD2240110iafvzis8P01
I attach screenshots with order response, order payload, and response from retrieve
method.
Screenshots are from two different orders but response is always same for all orders.
Order response:
Order payload:
retrieve response:
I can see that use stored card token to recurring payment. First transaction this token must be with 3DS so please use card with challenge from https://developers.payu.com/europe/pl/docs/testing/sandbox/#sandbox-test-cards
Please reffer with https://developers.payu.com/europe/pl/docs/payment-solutions/cards/tokenization/ and if you will have problem please contact to BOK PayU.
Hello, I have a problem with creating order with credit card. My array with order data (simplified):
$response = \OpenPayU_Order::create($order);
I'm using sandbox and card listed on your website, order is created and I get response but when I get information about order, order has status
pending
$data = \OpenPayU_Order::retrieve($orderId);
$data->getResponse()->orders[0]->status
- PENDINGI can't find information what should I do for the order to have the SUCCESS status.