aviabird / gringotts

A complete payment library for Elixir and Phoenix Framework
https://hexdocs.pm/gringotts/Gringotts.html
MIT License
482 stars 53 forks source link

[PinPayments] capture function with test cases #147

Open ravirocx opened 6 years ago

ravirocx commented 6 years ago

PinPayments

capture/3

Implemented capture function:

Docs

Added docs for capture/3.

Tests

Added integration tests for capture/3, using ExVCR.

codecov-io commented 6 years ago

Codecov Report

Merging #147 into pinpay will increase coverage by 6.03%. The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           pinpay     #147      +/-   ##
==========================================
+ Coverage   60.04%   66.07%   +6.03%     
==========================================
  Files          15       15              
  Lines         498      510      +12     
==========================================
+ Hits          299      337      +38     
+ Misses        199      173      -26
Impacted Files Coverage Δ
lib/gringotts/gateways/pin_payments.ex 83.33% <83.33%> (+83.33%) :arrow_up:
lib/gringotts/gateways/global_collect.ex 100% <0%> (ø) :arrow_up:

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 69f0aca...bfe329c. Read the comment docs.