Module: Paymaya::Checkout::Customization

Defined in:
lib/paymaya/checkout/customization.rb

Class Method Summary collapse

Class Method Details

.getObject



20
21
22
23
# File 'lib/paymaya/checkout/customization.rb', line 20

def self.get
  Helper.request(:get, customization_url, {},
    Helper.checkout_secret_auth_headers)
end

.removeObject



25
26
27
28
# File 'lib/paymaya/checkout/customization.rb', line 25

def self.remove
  Helper.request(:delete, customization_url, {},
    Helper.checkout_secret_auth_headers)
end

.set(logo_url:, icon_url:, apple_touch_icon_url:, custom_title:, color_scheme:) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/paymaya/checkout/customization.rb', line 9

def self.set(logo_url:, icon_url:, apple_touch_icon_url:, custom_title:,
  color_scheme:)
  Helper.request(:post, customization_url, {
    logo_url: logo_url,
    icon_url: icon_url,
    apple_touch_icon_url: apple_touch_icon_url,
    custom_title: custom_title,
    color_scheme: color_scheme
  }, Helper.checkout_secret_auth_headers)
end