woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Amazon pay endpoint failure since woocommerce 9.0.0 or later #290

Closed ChristianAF closed 2 weeks ago

ChristianAF commented 2 months ago

Describe the bug Using endpoints to Authorize or Capture is getting this error:

{
    "code": "rest_no_route",
    "message": "No route was found matching the URL and request method.",
    "data": {
        "status": 404
    }
}

To Reproduce Steps to reproduce the behavior:

  1. Setup Amazon Pay option "Payment Capture" to "Don't Authorize the payment..." and Save
  2. Update Woocommerce to the latest version 9.0 or later
  3. On an incognito with a guest or logged user purchase a product with Amazon Pay
  4. With Postman or other tool, execute the POST request enpoint to Authorize the order {{DOMAIN}}wp-json/wc/v1/orders/{{ORDERID}}/amazon-payments-advanced/authorize

Expected behavior Amazon Pay enpoint should work without problem

Isolating the problem (mark completed items with an [x]):