diff --git a/response-example-one b/response-example-one new file mode 100644 index 0000000..1ef9391 --- /dev/null +++ b/response-example-one @@ -0,0 +1,55 @@ +example of an info fetch, for reference + +PPPPPPPPPPPPP #nil, "postal_match"=>nil, "street_match"=>nil, "message"=>nil}, + + @params={"country_name"=>"United Kingdom" + "name"=>"Test User" + "city_name"=>"Wolverhampton" + "insurance_option_selected"=>"false" + "insurance_total"=>"0.00" + "shipping_total_currency_id"=>"GBP" + "insurance_option_offered"=>"false" + "payer"=>"paulcc_1247500933_per@gmail.com" + "address_owner"=>"PayPal" + "payer_country"=>"GB" + "timestamp"=>"2009-08-11T08:12:11Z" + "correlation_id"=>"ed7b386bb3c6e" + "country"=>"GB" + "token"=>"EC-32483953BF188421W" + "street1"=>"1 Main Terrace" + "handling_total"=>"0.00" + "shipping_calculation_mode"=>"Callback" + "postal_code"=>"W12 4LQ" + "payer_business"=>nil, "salutation"=>nil, "invoice_id"=>"R884242533" + "street2"=>nil, "external_address_id"=>nil, "tax_total"=>"6.00" + "build"=>"997644" + "address_id"=>nil, "shipping_discount_currency_id"=>"GBP" + "version"=>"57.0" + "shipping_option_name"=>nil, "tax_total_currency_id"=>"GBP" + "shipping_discount"=>"0.00" + "payer_id"=>"QWVRDBQ88DR7N" + "shipping_option_is_default"=>"false" + "last_name"=>"User" + "address_status"=>"Confirmed" + "phone"=>nil, "payer_status"=>"unverified" + "custom"=>"R884242533" + "suffix"=>nil, "order_total"=>"39.99" + "order_total_currency_id"=>"GBP" + "order_description"=>"Goods from a Spree-based site" + "insurance_total_currency_id"=>"GBP" + "handling_total_currency_id"=>"GBP" + "ack"=>"Success" + "middle_name"=>nil, "state_or_province"=>"West Midlands" + "shipping_total"=>"0.00" + "first_name"=>"Test"}, + + @test=true, + @authorization=nil, + @message="Success", + @success=true, + @cvv_result={"code"=>nil, "message"=>nil}> + + diff --git a/response-xml-one b/response-xml-one new file mode 100644 index 0000000..1ef6631 --- /dev/null +++ b/response-xml-one @@ -0,0 +1,137 @@ +example xml response for both info and auth stages + + + + 2009-08-11T08:34:45Z + Success + ab1d12f6341a0 + 57.0 + 997644 + + + EC-6B741617JU9239212 + + paulcc_1247500933_per@gmail.com + QWVRDBQ88DR7N + unverified + + + + Test + + + User + + + + GB + + +
+ Test User + 1 Main Terrace + + + Wolverhampton + West Midlands + GB + United Kingdom + W12 4LQ + PayPal + Confirmed +
+
+ R617411028 + R617411028 + + 39.99 + 0.00 + 0.00 + 6.00 + Goods from a Spree-based site + R617411028 + R617411028 + + + Test User + 1 Main Terrace + + + Wolverhampton + West Midlands + GB + United Kingdom + + + W12 4LQ + + + PayPal + + + Confirmed + + + 0.00 + 0.00 + false + + + Callback + false + false + + + +
+
+ + " +PPPPPPPPPPPPP #nil, "postal_match"=>nil, "street_match"=>nil, "message"=>nil}, @params={"name"=>"Test User", "city_name"=>"Wolverhampton", "insurance_option_selected"=>"false", "insurance_total"=>"0.00", "shipping_total_currency_id"=>"GBP", "insurance_option_offered"=>"false", "country_name"=>"United Kingdom", "payer"=>"paulcc_1247500933_per@gmail.com", "address_owner"=>"PayPal", "payer_country"=>"GB", "correlation_id"=>"ab1d12f6341a0", "timestamp"=>"2009-08-11T08:34:45Z", "country"=>"GB", "token"=>"EC-6B741617JU9239212", "street1"=>"1 Main Terrace", "handling_total"=>"0.00", "shipping_calculation_mode"=>"Callback", "postal_code"=>"W12 4LQ", "payer_business"=>nil, "salutation"=>nil, "invoice_id"=>"R617411028", "street2"=>nil, "external_address_id"=>nil, "tax_total"=>"6.00", "build"=>"997644", "shipping_discount_currency_id"=>"GBP", "shipping_option_name"=>nil, "version"=>"57.0", "tax_total_currency_id"=>"GBP", "address_id"=>nil, "shipping_discount"=>"0.00", "shipping_option_is_default"=>"false", "payer_id"=>"QWVRDBQ88DR7N", "address_status"=>"Confirmed", "last_name"=>"User", "phone"=>nil, "payer_status"=>"unverified", "custom"=>"R617411028", "suffix"=>nil, "order_total"=>"39.99", "order_total_currency_id"=>"GBP", "order_description"=>"Goods from a Spree-based site", "insurance_total_currency_id"=>"GBP", "handling_total_currency_id"=>"GBP", "ack"=>"Success", "middle_name"=>nil, "state_or_province"=>"West Midlands", "shipping_total"=>"0.00", "first_name"=>"Test"}, @test=true, @authorization=nil, @message="Success", @success=true, @cvv_result={"code"=>nil, "message"=>nil}> +PARSE: " + + + + + + + + + + + A2VYNHC1wYRx0ZwMX6dXwoFDGTMnAYt4SmzCH6LS3nVKLszXCtL-rp9o + + + + + + + + 2009-08-11T08:34:51Z + Success + ad01596b089a + 57.0 + 997644 + + EC-6B741617JU9239212 + + 08Y81513KR775024S + + + + + express-checkout + instant + 2009-08-11T08:34:51Z + 39.99 + 6.00 + + + Completed + none + none + + + + + "