Skip to content

Commit

Permalink
payment response can also have seller_id and request_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Apr 25, 2012
1 parent 31f8911 commit e94c5e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/paypal/payment/response.rb
@@ -1,7 +1,7 @@
module Paypal
module Payment
class Response < Base
attr_accessor :amount, :ship_to, :description, :note, :items, :notify_url, :insurance_option_offered, :currency_code, :short_message, :long_message, :error_code, :severity_code, :ack, :transaction_id, :billing_agreement_id
attr_accessor :amount, :ship_to, :description, :note, :items, :notify_url, :insurance_option_offered, :currency_code, :short_message, :long_message, :error_code, :severity_code, :ack, :transaction_id, :billing_agreement_id, :request_id, :seller_id

def initialize(attributes = {})
attrs = attributes.dup
Expand Down Expand Up @@ -36,6 +36,8 @@ def initialize(attributes = {})
@ack = attrs.delete(:ACK)
@transaction_id = attrs.delete(:TRANSACTIONID)
@billing_agreement_id = attrs.delete(:BILLINGAGREEMENTID)
@request_id = attrs.delete(:PAYMENTREQUESTID)
@seller_id = attrs.delete(:SELLERPAYPALACCOUNTID)

# items
items = []
Expand Down

0 comments on commit e94c5e4

Please sign in to comment.