shamshudein
Forum Replies Created
-
Hi @senff , I have tested with RazorPay. Yes, When I enable hooks, payment processor (RazorPay) eventually comes back and update the WooCommerce. But it takes somewhere between 5 seconds to 120 seconds. In the mean time, payment status is still showing “Pending” which is alarming the end user (as the payment is already deducted) until the user refresh the My Orders page.
However if the user is logged in, WooCommerce is updating the status instantly without the dependency on hooks. At the same time, Order Received is coming with Order Id & Key as in https://www.cortexmind.com/provisionshop/checkout/order-received/106/?key=wc_order_kocbKDrVJOCHO
Why there is a difference in behaviour when logged in Vs without login (incognito) for the order-pay & order-received page? Is there anything to be done to make it work just like logged in user?
@contactjavas I am trying to use JWT Auth to generate token based on Customer user name/pwd dynamically on Mobile App based on customer login.
Basic Authentication using WooCommerce ConsumerKey & ConsumerSecret from Mobile App will not work as it will expose the Admin Authentication details. That is the reason I am trying to use JWT Auth to generate the token using user credentials (with Customer Role).
Apparently WooCommerce does not like it. Isn’t it the purpose of JWT Auth Plugin here?
Hi @contactjavas , I am using latest version JWT Auth 1.4.1.
It is happening to all endpoints when using Bearer Token. Token is generated by passing the login using the user name/pwd of the customer.
Endpoint used for generating token: /wp-json/jwt-auth/v1/token
Some examples of WooCommerce EndPoints used with Bearer Token are given below. All of them are giving errors. Same is working when we used Basic Authentication with Admin user.
/wp-json/wc/v3/customers/<<customerId>>
/wp-json/wc/v3/products/<<productId>>
/wp-json/wc/v3/products/categories/<<categoryId>>Hi,
No. Here the WebView refers to Mobile Web Browser that gets opened from Mobile App. It happens in any of the 3rd party payment gateways.
But this is happening only in Mobile browser. It works fine in Desktop browser.
I am loading the WooCommerce URL: /checkout/order-pay/<<orderId>>?key=<<orderKey>> in the Mobile browser. This loads the payment page. After the payment is done, it comes back to WooCommerce URL: /checkout/order-received/?key= instead of /checkout/order-received/<<orderId>>?key=<<orderKey>>. Please note that it is loosing the orderId and orderKey in transit.
WordPress Version: 5.4.2
WooCommerce Version: 4.2.2
Web Server: Apache/2.4.25Any ideas why this happens?