Class: PaypalServerSdk::CallbackEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal_server_sdk/models/callback_events.rb

Overview

CallBack event.

Constant Summary collapse

CALLBACK_EVENTS =
[
  # When Buyer changes or selects the shipping address on the PayPal/Venmo
  # buyer approval flow , PayPal/Venmo will call merchant with the callback
  # URL to update order totals.
  SHIPPING_ADDRESS = 'SHIPPING_ADDRESS'.freeze,

  # When Buyer changes or selects the shipping options on the PayPal/Venmo
  # buyer approval flow , PayPal/Venmo will call merchant with the callback
  # URL to update order totals.
  SHIPPING_OPTIONS = 'SHIPPING_OPTIONS'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



21
22
23
24
25
# File 'lib/paypal_server_sdk/models/callback_events.rb', line 21

def self.validate(value)
  return false if value.nil?

  true
end