-
-
Save epitron/b6b34ecaebe10e624dcdf5afdf1ed353 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> {"shipping_address"=> | |
{"recipient_name"=>"Cool Buyer", | |
"line1"=>"3rd st", | |
"line2"=>"cool", | |
"city"=>"San Jose", | |
"state"=>"CA", | |
"postal_code"=>"95112", | |
"country_code"=>"US"}, | |
"id"=>"I-PE7JWXKGVN0R", | |
"plan"=> | |
{"curr_code"=>"USD", | |
"links"=>[], | |
"payment_definitions"=> | |
[{"type"=>"TRIAL", | |
"frequency"=>"Month", | |
"frequency_interval"=>"1", | |
"amount"=>{"value"=>"5.00"}, | |
"cycles"=>"5", | |
"charge_models"=> | |
[{"type"=>"TAX", "amount"=>{"value"=>"1.00"}}, | |
{"type"=>"SHIPPING", "amount"=>{"value"=>"1.00"}}]}, | |
{"type"=>"REGULAR", | |
"frequency"=>"Month", | |
"frequency_interval"=>"1", | |
"amount"=>{"value"=>"10.00"}, | |
"cycles"=>"15", | |
"charge_models"=> | |
[{"type"=>"TAX", "amount"=>{"value"=>"2.00"}}, | |
{"type"=>"SHIPPING", "amount"=>{"value"=>"1.00"}}]}], | |
"merchant_preferences"=> | |
{"setup_fee"=>{"value"=>"0.00"}, "auto_bill_amount"=>"YES", "max_fail_attempts"=>"21"}}, | |
"payer"=> | |
{"payment_method"=>"paypal", | |
"status"=>"verified", | |
"payer_info"=> | |
{"email"=>"[email protected]", | |
"first_name"=>"Cool", | |
"last_name"=>"Buyer", | |
"payer_id"=>"XLHKRXRA4H7QY", | |
"shipping_address"=> | |
{"recipient_name"=>"Cool Buyer", | |
"line1"=>"3rd st", | |
"line2"=>"cool", | |
"city"=>"San Jose", | |
"state"=>"CA", | |
"postal_code"=>"95112", | |
"country_code"=>"US"}}}, | |
"description"=>"update desc", | |
"agreement_details"=> | |
{"outstanding_balance"=>{"value"=>"0.00"}, | |
"num_cycles_remaining"=>"5", | |
"num_cycles_completed"=>"0", | |
"last_payment_date"=>"2016-04-28T11:29:54Z", | |
"last_payment_amount"=>{"value"=>"1.00"}, | |
"final_payment_due_date"=>"1971-07-30T10:00:00Z", | |
"failed_payment_count"=>"0"}, | |
"state"=>"Suspended", | |
"links"=> | |
[{"href"=>"https://api.paypal.com/v1/payments/billing-agreements/I-PE7JWXKGVN0R", | |
"rel"=>"self", | |
"method"=>"GET"}], | |
"start_date"=>"2016-04-30T07:00:00Z"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment