Sha256: 917fab24831eb8bd3da92bf3e6fd135f8719cade22f38cd44e8cab625abd8a5d
Contents?: true
Size: 1.44 KB
Versions: 6
Compression:
Stored size: 1.44 KB
Contents
Workarea.configure do |config| config.tender_types << :paypal # Determines which environment class to use. The PayPal SDK requires the # use of different classes depending on the type of environment you are # interacting with. By default, sandbox will be used unless in production. # This behavior can be changed within your application by redefining this # configuration. # config.paypal_environment = if Rails.env.production? 'Paypal::LiveEnvironment' else 'PayPal::SandboxEnvironment' end # Parameters passed as a query string to the paypal javascript sdk script # when loaded on the storefront. This can be used to customize settings and # display options. # See https://developer.paypal.com/docs/checkout/reference/customize-sdk/ # for more information. # config.paypal_sdk_params = { commit: false, debug: Rails.env.development? } # Enable/Disable paypal as your credit card processor. This will enable # code that takes over the credit card fields during checkout and submits # payment info directly to paypal. You will need to enable unbranded credit # cards through PayPal. Contact PayPal directly for more information. # config.use_paypal_hosted_fields = false # Events to register a webhook for when running the rake tasks to setup # webhooks, workarea:payal:create_webhooks. # config.default_webhook_events = %w( PAYMENT.CAPTURE.COMPLETED PAYMENT.CAPTURE.DENIED ) end
Version data entries
6 entries across 6 versions & 1 rubygems