Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix payment api endpoint url bug #25
There's a bug in the payment api that causes orders log as waiting for payment even though payment is successfully done. The bug is caused by conflicting rewrite rules that make the permalink wrong. I make a filter for checkout payment url and remove these extra parts in the url which makes the payment api to work.
My solution isn't pretty and could use some regex magic but it does what it needs to do and it works.
You can debug the url by adding this in header of your theme: