lokielse / omnipay-unionpay

UnionPay driver for the Omnipay PHP payment processing library
MIT License
112 stars 43 forks source link

Update Wtz Gateway #32

Closed kongkx closed 5 years ago

kongkx commented 5 years ago
  1. add encryptSensitive params
  2. update requests to support "standard" version and "token" version
  3. update TestCase, replace WtzGatewayTest with WtzStandardGatewayTest and WtzTokenGatewayTest
  4. update Readme.md, add Wtz Gateway example.
  5. Change ResponseVerifyHelper::verify, only check if response is valid.
codecov-io commented 5 years ago

Codecov Report

Merging #32 into master will increase coverage by 3.27%. The diff coverage is 69.15%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #32      +/-   ##
============================================
+ Coverage     74.31%   77.59%   +3.27%     
+ Complexity      568      561       -7     
============================================
  Files            56       56              
  Lines          1713     1727      +14     
============================================
+ Hits           1273     1340      +67     
+ Misses          440      387      -53
Impacted Files Coverage Δ Complexity Δ
src/Common/ResponseVerifyHelper.php 87.09% <ø> (+32.55%) 8 <0> (-1) :arrow_down:
src/Message/ApplyTokenRequest.php 0% <0%> (ø) 5 <0> (ø) :arrow_down:
src/Message/WtzConsumeUndoRequest.php 0% <0%> (ø) 4 <4> (?)
src/WtzGateway.php 78.26% <0%> (-3.56%) 22 <1> (+1)
src/ExpressGateway.php 83.63% <100%> (+0.61%) 55 <2> (+2) :arrow_up:
src/Message/WtzRefundRequest.php 100% <100%> (ø) 4 <0> (ø) :arrow_down:
src/Message/WtzSmsOpenRequest.php 95.74% <100%> (-2.62%) 12 <0> (-3)
src/Message/ExpressFileTransferRequest.php 87.5% <100%> (+6.25%) 8 <0> (ø) :arrow_down:
src/Message/WtzFrontOpenConsumeRequest.php 100% <100%> (ø) 5 <0> (+3) :arrow_up:
src/Message/WtzConsumeRequest.php 100% <100%> (ø) 12 <0> (+6) :arrow_up:
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c79aa15...799e0f7. Read the comment docs.