Update payment confirmation for new API endpoint
This commit is contained in:
parent
e0c07091e9
commit
6ae6dd8430
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue