We need this so end users doesn't necessarily needs to do anything in order to select a payment method type. This will be a good UA improvement for payment gateways that only provides a single payment method type

Comments

googletorp created an issue. See original summary.

googletorp’s picture

Status: Active » Needs review
bojanz’s picture

Status: Needs review » Needs work

The added getters are not in the same order as the order of the annotation keys.
Plus, the getDefaultPaymentMethodType() should return a PaymentMethodType instance, not a string.
Making the changes.

EDIT: Waiting on Travis: https://travis-ci.org/drupalcommerce/commerce/jobs/162303229

bojanz’s picture

Status: Needs work » Fixed

All good. Thanks!

  • bojanz committed fb55f5b on 8.x-2.x authored by googletorp
    Issue #2798299 by googletorp, bojanz: Allow payment gateways to define a...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.