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/), 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). 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] ## [1.6.0]
### Added ### Added

View file

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