Class: RubyEcommClient::ServiceProfile
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- RubyEcommClient::ServiceProfile
- Defined in:
- lib/ruby-ecomm-client/service_profile.rb
Constant Summary collapse
- ENDPOINTS_PROFILE =
{ :development => 'http://gdcomm.dev.glbt1.gdg/WSgdInstantPurchasePublic/Service.asmx', :production => 'https://gdcomm.prod.phx3.gdg/WSgdInstantPurchasePublic/Service.asmx', :qa => 'http://gdcomm.test.glbt1.gdg/WSgdInstantPurchasePublic/Service.asmx', :test => 'http://gdcomm.dev.glbt1.gdg/WSgdInstantPurchasePublic/Service.asmx' }
- WSDL_PROFILE =
'profile.wsdl'
Constants inherited from ServiceBase
RubyEcommClient::ServiceBase::ID_TYPE
Instance Method Summary collapse
Methods inherited from ServiceBase
Methods included from Utils
Constructor Details
This class inherits a constructor from RubyEcommClient::ServiceBase
Instance Method Details
#express_checkout? ⇒ Boolean
12 13 14 15 16 17 18 |
# File 'lib/ruby-ecomm-client/service_profile.rb', line 12 def express_checkout? result = client_profile.call(:shopper_has_instant_purchase_payment, :message => { 'sShopperID' => config_client.shopper_id }) response = convert_value(result.body[:shopper_has_instant_purchase_payment_response]) response[:b_has_instant_purchase_payment] end |