Code Monkey home page Code Monkey logo

chargify's Introduction

Chargify

Follow these directions to set up recurring commissions from Chargify for your Referral (or Affiliate) program.

NOTE: You must also have the ambassador javascript snippet on your payment success page, to record the initial commission.

  1. Go to Chargify -> Settings -> Webhooks
  • Enable webhooks
  • Specify URL to your webhook handler
  • Check "Renewal Success" in "Webhooks subscriptions"
  • Save webhooks settings

  1. Add ambassador_chargify.php file to your libraries folder.

  2. Set values for $username, $api_key and $campaign_uid variables, and add additional variables (optional).

You can find them here:

Additional Variable Information located in API docs:

  1. In your function which handles webhook data add this code:

4.1 PHP

NOTE: You need to specify path to your library folder

require_once(PATH_TO_LIBRARY_FOLDER.'/ambassador_chargify.php');
$ambassador_chargify = new Ambassador_chargify();
$ambassador_chargify->renewal();

4.2 PHP + CodeIgniter

$this->load->library('ambassador_chargify');
$this->ambassador_chargify->renewal();
  1. Run your webhook URL in a browser to check if there are any errors displayed. If you see blank page, it is ok.

chargify's People

Contributors

ambassador avatar gpszymczak avatar

Stargazers

 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

Forkers

boborchard

chargify's Issues

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.