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

[SecurionPay] Implemented `purchase/3` #143

Open radewoosh opened 6 years ago

radewoosh commented 6 years ago
SecurionPay
===========

`purchasee/3`
---------------
* Implemented two `purchase` clauses:
  - `CreditCard` struct (a `card_id` is NOT generated)
  - `card_id` (`customer_id` must be provided in `opts`)
* Does not support optional arguments like shipping, billing etc.
* In both cases, the Gateway API is hit only ONCE.

Docs
----
* Added docs for `purchase/3`.

Tests
-----
* Added integration tests for `purchase/3`, uing ExVCR.