swelham / cashier

Cashier is an Elixir library that aims to be an easy to use payment gateway, whilst offering the fault tolerance and scalability benefits of being built on top of Erlang/OTP
MIT License
49 stars 10 forks source link

Gateway process doesn't stop when :stop returned #14

Closed swelham closed 7 years ago

swelham commented 7 years ago

Returning {:stop, :reason} from a gateway request should cause the gateway process to stop. This currently isn't being handled correctly and the process continues to live on with potentially invalid state.

Adjust the base gateway to handle the stop response and ensure the correct genserver responses are being returned.