PayU payment method shows "Transaction has been declined. Please try again later." error when trying to complete a checkout synced from an external cart (this case was tested with Vue Storefront: https://github.com/DivanteLtd/vue-storefront)
The error appears because customer IP is missing when following this checkout flow. The below response comes from PayU API:
PayU payment method shows "Transaction has been declined. Please try again later." error when trying to complete a checkout synced from an external cart (this case was tested with Vue Storefront: https://github.com/DivanteLtd/vue-storefront)
The error appears because customer IP is missing when following this checkout flow. The below response comes from PayU API:
The proposed fix checks if customer IP is empty in order object. In case it is, then customer IP will be pulled from remote address