Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created September 9, 2013 15:37
Show Gist options
  • Select an option

  • Save Heavyblade/6497343 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/6497343 to your computer and use it in GitHub Desktop.
  1. Define the adapter on lib/billing_adapters, with public methods

    def transaction_success?(params)
    def transaction_message(params)
    def save_response(installation, params)
  2. Implement the model to store info on models/subscriptions/ and define public methods

    def self.build_from_params(params)
    def self.find_by_params(params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment