Skip to content

Commit

Permalink
refactor(payment): Use factory method to create payment method mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchin committed May 9, 2017
1 parent 6424089 commit f0c748c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/payment-mappers/payment-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class PaymentMapper {
* @returns {PaymentMapper}
*/
static create() {
const paymentMethodIdMapper = new PaymentMethodIdMapper();
const paymentMethodIdMapper = PaymentMethodIdMapper.create();

return new PaymentMapper(paymentMethodIdMapper);
}
Expand Down

0 comments on commit f0c748c

Please sign in to comment.