Sha256: 0eecd858984a9d3dc12d45eb9b306de9cce7fab5500038a0d3649e7e91bb462c
Contents?: true
Size: 1.09 KB
Versions: 7
Compression:
Stored size: 1.09 KB
Contents
module Shop module Tags module Responses include Radiant::Taggable # Expand if there is a checkout response desc %{ Expand if there is a checkout response } tag 'response:checkout' do |tag| tag.locals.response_checkout = tag.locals.response.result[:results][:checkout] tag.expand if tag.locals.response_checkout.present? end # Expand if there is a checkout payment response desc %{ Expand if there is a checkout payment response } tag 'response:checkout:payment' do |tag| tag.expand end # Expand if the payment was successful desc %{ Expand if the payment was successful } tag 'response:checkout:payment:if_success' do |tag| tag.expand if tag.locals.response_checkout[:payment] === true end # Expand if the payment was not successful desc %{ Expand if the payment was not successful } tag 'response:checkout:payment:unless_success' do |tag| tag.expand if tag.locals.response_checkout[:payment] === false end end end end
Version data entries
7 entries across 7 versions & 1 rubygems