Module: Spree::Adyen::URL

Defined in:
lib/spree/adyen/url.rb

Class Method Summary collapse

Class Method Details

.modify_search_url(query:) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/spree/adyen/url.rb', line 16

def self.modify_search_url(query:)
  ::URI::HTTPS.build(
    host: "ca-test.adyen.com",
    path: "/ca/ca/payments/modifySearch.shtml",
    query:
    { uxEvent: "PAYMENT_SEARCH",
      query: query,
      search: "Search"
  }.to_query
  ).to_s
end

.payment_adyen_customer_area_url(psp_reference:, merchant_account:) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/spree/adyen/url.rb', line 4

def self.payment_adyen_customer_area_url(psp_reference:, merchant_account:)
  ::URI::HTTPS.build(
    host: "ca-test.adyen.com",
    path: "/ca/ca/accounts/showTx.shtml",
    query:
    { txType: "Payment",
      accountKey: "MerchantAccount.#{}",
      pspReference: psp_reference
  }.to_query
  ).to_s
end