Sha256: 5bbc4204912b309139101e95bbe30223917aed8620be2e9c711e50ff6a929568
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
module PayPal module Invoice class Api API_ENDPOINTS = { :sandbox => "https://svcs.sandbox.paypal.com/Invoice", :production => "https://svcs.paypal.com/Invoice" } 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/invoice/api.rb |