Module: SolidusPaypalCommercePlatform::Spree::AddressDecorator

Defined in:
app/decorators/models/solidus_paypal_commerce_platform/spree/address_decorator.rb

Instance Method Summary collapse

Instance Method Details

#require_phone?Boolean

PayPal doesn’t use the phone number, so in cases where the user checks out via PayPal, this field will be unpopulated. If you want to require phone numbers, you’ll need to turn off cart & product page displays on the payment method edit page.

Returns:

  • (Boolean)


10
11
12
# File 'app/decorators/models/solidus_paypal_commerce_platform/spree/address_decorator.rb', line 10

def require_phone?
  super && false
end