Update payment confirmation for new API endpoint

This commit is contained in:
Rene Vergara 2023-06-26 09:50:12 -05:00
parent e0c07091e9
commit 6ae6dd8430
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
2 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.7.0]
### Changed
- Modified payment confirmation to use new WooCommerce plugin API endpoint.
## [1.6.0]
### Added

View File

@ -89,8 +89,9 @@ payWooOrder ::
-> BS.ByteString -- Total ZEC for order
-> IO ()
payWooOrder u i o t p z = do
wooReq <- parseRequest $ u ++ "/?wc-api=zpmtcallback"
wooReq <- parseRequest u
let req =
setRequestPath "/wp-json/wc/v3/zgocallback" $
setRequestQueryString
[ ("token", Just t)
, ("orderid", Just o)