woocommerce / woocommerce-square

Square POS and Payments Integration
https://woo.com/products/square
Other
11 stars 7 forks source link

Remove double encoding in the redirect url from the OAuth flow #182

Closed diegocurbelo closed 4 months ago

diegocurbelo commented 4 months ago

Changes proposed in this Pull Request:

This PR removes the double encoding in the redirect_url from the oauth connect url.

This is needed after the validateUrl() changes from Jul 17th on api.woocommerce.com.

Closes #181

Steps to test the changes in this Pull Request:

  1. Navigate to WP-Admin > WooCommerce > Settings
  2. Click on the Square tab
  3. If already connected to Square, disconnect by clicking on the Disconnect from Square button
  4. Click on the Connect to Square button
  5. Complete the OAuth flow with your Square credentials
  6. Check that the redirect page loads correctly: Screenshot 2024-07-21 at 11 09 28 PM
  7. Click That's my site - redirect me
  8. Check the Account was correctly connected Screenshot 2024-07-21 at 11 07 36 PM

Changelog entry

Fix - Remove double encoding from the redirect_url param in the oauth connect url.