Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callable Payjp object #3

Merged
merged 1 commit into from
Feb 10, 2016
Merged

callable Payjp object #3

merged 1 commit into from
Feb 10, 2016

Conversation

wozozo
Copy link
Contributor

@wozozo wozozo commented Feb 7, 2016

Implemented a constructor Payjp that can be both function-called and constructor-called.

// es6 import statement
import Payjp from 'payjp';
var payjp1 = new Payjp('apikey');

// require
var _payjp = require('payjp');
var payjp2 = new _payjp('apikey');

// callable
var payjp3 = require('payjp')('apikey');

wozozo added a commit that referenced this pull request Feb 10, 2016
@wozozo wozozo merged commit b271a7a into master Feb 10, 2016
@wozozo wozozo deleted the function-callable-class branch February 10, 2016 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant