Class: Afterpay::Components::Merchant

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/merchant.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

URL to receive Javascript callbacks from Afterpay (e.g. onComplete, onShippingAddressChange, etc). Include the scheme, hostname and port. Port is optional.

Returns:

  • (String)


20
21
22
# File 'lib/afterpay/components/merchant.rb', line 20

def popup_origin_url
  @popup_origin_url
end

#redirect_cancel_urlString

The user to redirected to this URL if the payment process is cancelled.

Returns:

  • (String)


14
15
16
# File 'lib/afterpay/components/merchant.rb', line 14

def redirect_cancel_url
  @redirect_cancel_url
end

#redirect_confirm_urlString

The user is redirected to this URL on confirmation.

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/merchant.rb', line 9

def redirect_confirm_url
  @redirect_confirm_url
end