class PayPal::SDK::Merchant::API

Constants

MERCHANT_HTTP_HEADER

Public Class Methods

new(environment = nil, options = {}) click to toggle source
Calls superclass method
# File lib/paypal-sdk/merchant/api.rb, line 10
def initialize(environment = nil, options = {})
  super("", environment, options)
end

Public Instance Methods

BillAgreementUpdate(options = {} , http_header = {}) click to toggle source

Service Call: BillAgreementUpdate @param BillAgreementUpdateReq @return BAUpdateResponseType

# File lib/paypal-sdk/merchant/api.rb, line 27
def BillAgreementUpdate(options = {} , http_header = {})
  request_object = BuildBillAgreementUpdate(options)
  request_hash = request_object.to_hash
  response_hash = request(nil, {
    "ns:BillAgreementUpdateReq" => {
      "ns:BAUpdateRequest" => request_hash
    }
  }, http_header)
  BAUpdateResponseType.new(response_hash)
end
Also aliased as: bill_agreement_update
bill_agreement_update(options = {} , http_header = {})
Alias for: BillAgreementUpdate
default_http_header() click to toggle source
Calls superclass method
# File lib/paypal-sdk/merchant/api.rb, line 15
def default_http_header
  super.merge(MERCHANT_HTTP_HEADER)
end
ipn_valid?(raw_post_data) click to toggle source

Validate IPN message

# File lib/paypal-sdk/merchant/api.rb, line 20
def ipn_valid?(raw_post_data)
  Core::API::IPN.valid?(raw_post_data, config)
end