Easily create new CreateCustomerRequest
Closed this issue · 2 comments
dongilbert commented
In order to create a new customer, you have to bring in the CreateCustomerRequest
class via use
, which is a little verbose (especially if you're using DI / Service Location to access your stripe instance). What do you think of adding a createCustomerRequest()
method on this class - https://github.com/jlinn/stripe-api-php/blob/master/src/Stripe/Api/Customers.php#L17 - it would return new CreateCustomerRequest
, but it saves time if you already have access to the stripe object.
jlinn commented
Good suggestion. Those methods have been added to the existing Api classes.
dongilbert commented
Great, thanks!