Class: PaymentRecipes::PayPal::SOAP::Settings
- Inherits:
-
Object
- Object
- PaymentRecipes::PayPal::SOAP::Settings
- Defined in:
- lib/payment_recipes/paypal/soap/settings.rb
Class Method Summary collapse
Class Method Details
.api ⇒ Object
16 17 18 |
# File 'lib/payment_recipes/paypal/soap/settings.rb', line 16 def self.api ::PayPal::SDK::Merchant.new end |
.configure(live: false, app_id:, username:, password:, signature:) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/payment_recipes/paypal/soap/settings.rb', line 5 def self.configure(live: false, app_id:, username:, password:, signature:) mode = live ? "live" : "sandbox" ::PayPal::SDK.configure( :mode => mode, :app_id => app_id, :username => username, :password => password, :signature => signature ) end |