Skip to content

Instantly share code, notes, and snippets.

@cannapages
Created January 23, 2015 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannapages/6639300f922cd5ea1b1b to your computer and use it in GitHub Desktop.
Save cannapages/6639300f922cd5ea1b1b to your computer and use it in GitHub Desktop.
Paypal payment object inspect at error point
#<PayPal::SDK::REST::DataTypes::Payment:0x00000008053310 @error=nil, @intent="sale", @payer=#<PayPal::SDK::REST::DataTypes::Payer:0x00000008052f78 @error=nil, @payment_method="credit_card", @funding_instruments=[#<PayPal::SDK::REST::DataTypes::FundingInstrument:0x0000000804ee28 @error=nil, @credit_card=#<PayPal::SDK::REST::DataTypes::CreditCard:0x0000000804ece8 @error=nil, @type="visa", @number="4111111111111111", @expire_month=1, @expire_year=2017, @cvv2="123", @first_name="Tyrel", @last_name="Richey", @billing_address=#<PayPal::SDK::REST::DataTypes::Address:0x0000000804dff0 @error=nil, @line1="12345 Fake St.", @city="Denver", @state="Colorado", @postal_code="80229", @country_code="US">>>]>, @transactions=[#<PayPal::SDK::REST::DataTypes::Transaction:0x0000000804d398 @error=nil, @amount=#<PayPal::SDK::REST::DataTypes::Amount:0x0000000804d258 @error=nil, @total="458.00", @currency="USD">, @description="Online course payment">], @request_id="5d0f973c-cdd6-435a-830b-67e10027e6e3", @header={}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment