Sha256: 816ffab557a95fac79cb3226e47e5836bcf85b2b5eb7762da4d2f20f64a5ec97
Contents?: true
Size: 968 Bytes
Versions: 1
Compression:
Stored size: 968 Bytes
Contents
module PayPal module AdaptivePayments class Api API_ENDPOINTS = { :sandbox => "https://svcs.sandbox.paypal.com/AdaptivePayments", :production => "https://svcs.paypal.com/AdaptivePayments" } DATA_FORMATS = { :nvp => 'NV', :xml => 'XML', :json => 'JSON' } class << self def username PayPal::Api.instance.username end def password PayPal::Api.instance.password end def signature PayPal::Api.instance.signature end def app_id PayPal::Api.instance.app_id end def environment PayPal::Api.environment end def api_endpoint API_ENDPOINTS[environment] end def request_data_format DATA_FORMATS[:json] end def response_data_format DATA_FORMATS[:json] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paypal-payment-0.1.2 | lib/paypal/adaptive_payments/api.rb |