yii2mod / yii2-cashier

Yii2 Cashier provides an interface to Stripe's subscription billing services.
MIT License
45 stars 23 forks source link

Braintree support #1

Closed iadj closed 8 years ago

iadj commented 8 years ago

This package looks really good! Any plans for porting over Braintree support?

ihorchepurnyi commented 8 years ago

Hi, thanks. I think we can do it on this week or maybe on the next week.

ihorchepurnyi commented 8 years ago

@iadj https://github.com/yii2mod/yii2-braintree

iadj commented 8 years ago

@igor-chepurnoi Awesome! Is it possible to use both in the same project, so users can pick whether they want to pay with CC (Stripe yii2-cashier) or Paypal (Braintree yii2-braintree)? If not, perhaps it's a good idea to combine the 2 packages and add an argument for the provider i.e. $user->newSubscription('braintree', 'main', 'monthly')->create($token);

I noticed that both subscription methods are $user->newSubscription('main', 'monthly')->create($creditCardToken);.

ihorchepurnyi commented 8 years ago

@iadj it's good idea, but right now we don't have time for this. PR are welcome :)