Coder Social home page Coder Social logo

chargify_direct_example's Introduction

Chargify Direct Example

This is a small Sinatra app that demonstrates how to use Chargify Direct for Signups. It leverages the new Chargify2 gem to create the Direct secure form inputs and signature, verify the redirect response, and fetch the call response.

Requirements

Your current Ruby version should meet or exceed the version specified in .ruby-version.

Getting Started

  1. Clone this repo to your local machine
  2. Run bundle install
  3. Copy config/config.example.yml to config/config.yml
  4. Edit config/config.yml to add your own API User credentials
  5. Create products on your API User's Site with handles 'basic' and 'pro' (or edit the example to match product handles you have)
  6. Invoke the app with bundle exec rackup and play at http://localhost:9292

chargify_direct_example's People

Contributors

dharmamike avatar drewblas avatar mdepolli avatar moklett avatar npverni avatar ryansch avatar speric avatar woodchopgirl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chargify_direct_example's Issues

CVV field missing

The CVV filed is not referred here neither in the direct API documentation but seems to work properly. Are you guys planning on deprecating that field or is it an oversight ?

Fetching call resource fails with 401

Not sure if this is a problem with this example app or the chargify2 gem or the API itself, but when I attempted to use this app with our testing chargify subdomain, the initial POST to create a new subscription works, but the attempt to query the Call Resource using the call ID (i.e. chargify.calls.read(params[:call_id])) fails with a 401:

get '/verify' do
  if chargify.direct.response_parameters(params).verified?
    @call = chargify.calls.read(params[:call_id])

I tried using curl on the command line with my api_id and api_password and got the same 401.

Failed transaction

Hello i am using chargify api and i need to get failed transaction list.
How can i achieve this?
plz helpme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.