Class: PayPal::ExpressCheckout::Api
- Inherits:
-
Object
- Object
- PayPal::ExpressCheckout::Api
- Defined in:
- lib/paypal/express_checkout/api.rb
Constant Summary collapse
- API_ENDPOINTS =
{ :sandbox => "https://api-3t.sandbox.paypal.com/nvp", :production => "https://api-3t.paypal.com/nvp" }
Class Method Summary collapse
- .api_endpoint ⇒ Object
-
.api_version ⇒ Object
Return PayPal’s API version.
- .app_id ⇒ Object
- .environment ⇒ Object
- .password ⇒ Object
- .signature ⇒ Object
- .username ⇒ Object
Class Method Details
.api_endpoint ⇒ Object
31 32 33 |
# File 'lib/paypal/express_checkout/api.rb', line 31 def api_endpoint self::API_ENDPOINTS[environment] end |
.api_version ⇒ Object
Return PayPal’s API version.
37 38 39 |
# File 'lib/paypal/express_checkout/api.rb', line 37 def api_version "93.0" end |
.app_id ⇒ Object
23 24 25 |
# File 'lib/paypal/express_checkout/api.rb', line 23 def app_id PayPal::Api.instance.app_id end |
.environment ⇒ Object
27 28 29 |
# File 'lib/paypal/express_checkout/api.rb', line 27 def environment PayPal::Api.environment end |
.password ⇒ Object
15 16 17 |
# File 'lib/paypal/express_checkout/api.rb', line 15 def password PayPal::Api.instance.password end |
.signature ⇒ Object
19 20 21 |
# File 'lib/paypal/express_checkout/api.rb', line 19 def signature PayPal::Api.instance.signature end |
.username ⇒ Object
11 12 13 |
# File 'lib/paypal/express_checkout/api.rb', line 11 def username PayPal::Api.instance.username end |