Created
March 24, 2014 22:53
-
-
Save abams/9751080 to your computer and use it in GitHub Desktop.
This file contains 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
class ActiveSupport::TestCase | |
def apple_receipt | |
'MIIbggYJKoZIhvcNAQcCoIIbczCCG28CAQExCzAJBgUrDgMCGgUAMIILMwYJKoZIhvcNAQcBoIILJASCCyAxggscMAoCAQgCAQEEAhYAMAoCARICAQEEAhYAMAoCARMCAQEEAgwAMAoCARQCAQEEAgwAMAsCAQECAQEEAwIBADALAgEDAgEBBAMMATEwCwIBCwIBAQQDAgEAMAsCAQ4CAQEEAwIBUTALAgEPAgEBBAMCAQAwCwIBEAIBAQQDAgEAMAsCARkCAQEEAwIBAzAMAgEKAgEBBAQWAjQrMA0CAQ0CAQEEBQIDARF0MA4CAQkCAQEEBgIEUDIyODAYAgEEAgECBBDuabE5Lbauzrsk8WLovHihMBsCAQACAQEEEwwRUHJvZHVjdGlvblNhbmRib3gwHAIBAgIBAQQUDBJjb20uYnlsaW5lci53ZWVrbHkwHAIBBQIBAQQUJFMs7reH3yBJ+xyOKQJSMPtTPDYwHgIBDAIBAQQWFhQyMDEzLTEyLTE3VDIxOjAxOjA4WjA6AgEHAgEBBDKL7sS/v5o6iHSWioLnE0PRcGF9r4SZ0OXjm+zXGm6EBPwesGEbEV9m/JfBEA6GXrPHYDBXAgEGAgEBBE+6ua/rbzgdYRU9Um5aaDQdu0s0rjmUuDVFz5Mp48wU48PbIUQUEzfkeqArZsEJpVZuvcVk2kj/W65UZfxZyWzNoOqynqdAaTQ/pY5lId7XMIIBhgIBEQIBAQSCAXwxggF4MAsCAgatAgEBBAIMADALAgIGsAIBAQQCFgAwCwICBrICAQEEAgwAMAsCAgazAgEBBAIMADALAgIGtAIBAQQCDAAwCwICBrUCAQEEAgwAMAsCAga2AgEBBAIMADAMAgIGpQIBAQQDAgEBMAwCAgarAgEBBAMCAQMwDAICBq4CAQE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ANBgkqhkiG9w0BAQUFAAOCAQEAXDaZTC14t+2Mm9zzd5vydtJ3ME/BH4WDhRuZPUc38qmbQI4s1LGQEti+9HOb7tJkD8t5TzTYoj75eP9ryAfsfTmDi1Mg0zjEsb+aTwpr/yv8WacFCXwXQFYRHnTTt4sjO0ej1W8k4uvRt3DfD0XhJ8rxbXjt57UXF6jcfiI1yiXV2Q/Wa9SiJCMR96Gsj3OBYMYbWwkvkrL4REjwYDieFfU9JmcgijNq9w2Cz97roy/5U2pbZMBjM3f3OgcsVuvaDyEO2rpzGU+12TZ/wYdV2aeZuTJC+9jVcZ5+oVK3G72TQiQSKscPHbZNnF5jyEuAF1CqitXa5PzQCQc3sHV1ITGCAcswggHHAgEBMIGjMIGWMQswCQYDVQQGEwJVUzETMBEGA1UECgwKQXBwbGUgSW5jLjEsMCoGA1UECwwjQXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbnMxRDBCBgNVBAMMO0FwcGxlIFdvcmxkd2lkZSBEZXZlbG9wZXIgUmVsYXRpb25zIENlcnRpZmljYXRpb24gQXV0aG9yaXR5AggYWUMhcnSc/DAJBgUrDgMCGgUAMA0GCSqGSIb3DQEBAQUABIIBALZe5L1qDdx6AhEcap5RIgZZgtezq0qJHuONgCzddQF+XzQUddm1PvJBBpxY7SQ+h70KoOFbbzYy4A44zi8anNYQYgkATEZ91GgR5cd9N6X6ez8NUebloTAwLl6eAyYXI+0oICfZaWWfhJv20a8lJb2hdPiwuaBexwFSODUlVpaJUXq6z8lSVkOMGeUoZ4Dn+uPWci8Nkz98ExXUGkgUu23Qyf1a/dBJHtLt3JxTeoorklucSq0QT9+lVfT3AnlcK6kc/6qF3M9WiTqJ7lLdfo2TxJ0gHMWK7Im6HZJyGmJEywrfuWQcA+UWe2OJ4gpjiMGt3DMxqacIjIeAq3x89Bw=' | |
end | |
def apple_response | |
{ | |
"status" => 0, | |
"environment" => "Sandbox", | |
"receipt" => { | |
"receipt_type" => "ProductionSandbox", | |
"adam_id" => 0, | |
"bundle_id" => "com.byliner.weekly", | |
"application_version" => "1", | |
"download_id" => 0, | |
"request_date" => "2013-12-17 22:03:12 Etc/GMT", | |
"request_date_ms" => "1387317792402", | |
"request_date_pst" => "2013-12-17 14:03:12 America/Los_Angeles", | |
"in_app" => [ | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425027", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:49:57 Etc/GMT", | |
"original_purchase_date_ms" => "1386874197000", | |
"original_purchase_date_pst" => "2013-12-12 10:49:57 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:53:54 Etc/GMT", | |
"expires_date_ms" => "1386874434000", | |
"expires_date_pst" => "2013-12-12 10:53:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667229", | |
"is_trial_period" => "false" | |
}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096424880", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:47:54 Etc/GMT", | |
"original_purchase_date_ms" => "1386874074000", | |
"original_purchase_date_pst" => "2013-12-12 10:47:54 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:50:54 Etc/GMT", | |
"expires_date_ms" => "1386874254000", | |
"expires_date_pst" => "2013-12-12 10:50:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667230", | |
"is_trial_period" => "false" | |
}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425099", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:52:58 Etc/GMT", | |
"original_purchase_date_ms" => "1386874378000", | |
"original_purchase_date_pst" => "2013-12-12 10:52:58 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:56:54 Etc/GMT", | |
"expires_date_ms" => "1386874614000", | |
"expires_date_pst" => "2013-12-12 10:56:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667245", | |
"is_trial_period" => "false" | |
}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425348", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:55:57 Etc/GMT", | |
"original_purchase_date_ms" => "1386874557000", | |
"original_purchase_date_pst" => "2013-12-12 10:55:57 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:59:54 Etc/GMT", | |
"expires_date_ms" => "1386874794000", | |
"expires_date_pst" => "2013-12-12 10:59:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667255", | |
"is_trial_period" => "false" | |
}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425873", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:58:56 Etc/GMT", | |
"original_purchase_date_ms" => "1386874736000", | |
"original_purchase_date_pst" => "2013-12-12 10:58:56 America/Los_Angeles", | |
"expires_date" => "2013-12-12 19:02:54 Etc/GMT", | |
"expires_date_ms" => "1386874974000", | |
"expires_date_pst" => "2013-12-12 11:02:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667269", | |
"is_trial_period" => "false" | |
}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425966", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 19:01:56 Etc/GMT", | |
"original_purchase_date_ms" => "1386874916000", | |
"original_purchase_date_pst" => "2013-12-12 11:01:56 America/Los_Angeles", | |
"expires_date" => "2013-12-12 19:05:54 Etc/GMT", | |
"expires_date_ms" => "1386875154000", | |
"expires_date_pst" => "2013-12-12 11:05:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667281", | |
"is_trial_period" => "false" | |
} | |
] | |
}, | |
"latest_receipt_info" => [ | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096424880", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 22 => 03 => 12 Etc/GMT", | |
"purchase_date_ms" => "1387317792387", | |
"purchase_date_pst" => "2013-12-17 14 => 03 => 12 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:47:54 Etc/GMT", | |
"original_purchase_date_ms" => "1386874074000", | |
"original_purchase_date_pst" => "2013-12-12 10:47:54 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:50:54 Etc/GMT", | |
"expires_date_ms" => "1386874254000", | |
"expires_date_pst" => "2013-12-12 10:50:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667230"}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425027", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 22 => 03 => 12 Etc/GMT", | |
"purchase_date_ms" => "1387317792387", | |
"purchase_date_pst" => "2013-12-17 14 => 03 => 12 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:49:57 Etc/GMT", | |
"original_purchase_date_ms" => "1386874197000", | |
"original_purchase_date_pst" => "2013-12-12 10:49:57 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:53:54 Etc/GMT", | |
"expires_date_ms" => "1386874434000", | |
"expires_date_pst" => "2013-12-12 10:53:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667229"}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425099", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 22 => 03 => 12 Etc/GMT", | |
"purchase_date_ms" => "1387317792387", | |
"purchase_date_pst" => "2013-12-17 14 => 03 => 12 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:52:58 Etc/GMT", | |
"original_purchase_date_ms" => "1386874378000", | |
"original_purchase_date_pst" => "2013-12-12 10:52:58 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:56:54 Etc/GMT", | |
"expires_date_ms" => "1386874614000", | |
"expires_date_pst" => "2013-12-12 10:56:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667245"}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425348", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 22 => 03 => 12 Etc/GMT", | |
"purchase_date_ms" => "1387317792387", | |
"purchase_date_pst" => "2013-12-17 14 => 03 => 12 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:55:57 Etc/GMT", | |
"original_purchase_date_ms" => "1386874557000", | |
"original_purchase_date_pst" => "2013-12-12 10:55:57 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:59:54 Etc/GMT", | |
"expires_date_ms" => "1386874794000", | |
"expires_date_pst" => "2013-12-12 10:59:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667255"}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425873", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 22 => 03 => 12 Etc/GMT", | |
"purchase_date_ms" => "1387317792387", | |
"purchase_date_pst" => "2013-12-17 14 => 03 => 12 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:58:56 Etc/GMT", | |
"original_purchase_date_ms" => "1386874736000", | |
"original_purchase_date_pst" => "2013-12-12 10:58:56 America/Los_Angeles", | |
"expires_date" => "2013-12-12 19:02:54 Etc/GMT", | |
"expires_date_ms" => "1386874974000", | |
"expires_date_pst" => "2013-12-12 11:02:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667269"}, | |
{ | |
"quantity" => "1", | |
"product_id" => "com.byliner.byliner_weekly.subscription", | |
"transaction_id" => "1000000096425966", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 22 => 03 => 12 Etc/GMT", | |
"purchase_date_ms" => "1387317792387", | |
"purchase_date_pst" => "2013-12-17 14 => 03 => 12 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 19:01:56 Etc/GMT", | |
"original_purchase_date_ms" => "1386874916000", | |
"original_purchase_date_pst" => "2013-12-12 11:01:56 America/Los_Angeles", | |
"expires_date" => "2013-12-12 19:05:54 Etc/GMT", | |
"expires_date_ms" => "1386875154000", | |
"expires_date_pst" => "2013-12-12 11:05:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667281" | |
} | |
], | |
"latest_receipt" => "MIIbgwYJKoZIhvcNAQcCoIIbdDCCG3ACAQExCzAJBgUrDgMCGgUAMI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sJL5Ky+ERI8GA4nhX1PSZnIIozavcNgs/e66Mv+VNqW2TAYzN39zoHLFbr2g8hDtq6cxlPtdk2f8GHVdmnmbkyQvvY1XGefqFStxu9k0IkEirHDx22TZxeY8hLgBdQqorV2uT80AkHN7B1dSExggHLMIIBxwIBATCBozCBljELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xLDAqBgNVBAsMI0FwcGxlIFdvcmxkd2lkZSBEZXZlbG9wZXIgUmVsYXRpb25zMUQwQgYDVQQDDDtBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9ucyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eQIIGFlDIXJ0nPwwCQYFKw4DAhoFADANBgkqhkiG9w0BAQEFAASCAQApbcpP1ReCipWOrLq8qbKVah+g35MzvdBwMNFTuhSF/OsS6yi7o5C9b5sk1wXXVAHAEd5StOe6VYbI5pdhy96pGG61+mrsjXsSUJHUQh05XNM1u9BBxDq+0mi1T5dMQYGELbna5fjfMLnthyVuAuq0QvcyV7Ezak6Lb+VvO+JGth1W/3kgVojUJplBj5+dFJtd9/Ax2KJWi6EKIIUclscOwrRXDL5kRUHicJReUf7VWqN9hyWQ0hC2Q3665OHMJ7deKCUPuFGgDBCp/8qtEMC0unuyQ0nJKzAMdrY5fKWqkQJc+OH1ouE98C0BzU4b1XZs3KMyU0QI7Y0CNUbJEWWo" | |
}.to_json | |
end | |
def invalid_product_response | |
{ | |
"status" => 0, | |
"environment" => "Sandbox", | |
"receipt" => { | |
"receipt_type" => "ProductionSandbox", | |
"adam_id" => 0, | |
"bundle_id" => "com.byliner.weekly", | |
"application_version" => "1", | |
"download_id" => 0, | |
"request_date" => "2013-12-17 22:03:12 Etc/GMT", | |
"request_date_ms" => "1387317792402", | |
"request_date_pst" => "2013-12-17 14:03:12 America/Los_Angeles", | |
"in_app" => [ | |
{ | |
"quantity" => "1", | |
"product_id" => "com.invald.byliner_weekly", | |
"transaction_id" => "1000000096425027", | |
"original_transaction_id" => "1000000096424880", | |
"purchase_date" => "2013-12-17 21 => 01 => 08 Etc/GMT", | |
"purchase_date_ms" => "1387314068000", | |
"purchase_date_pst" => "2013-12-17 13 => 01 => 08 America/Los_Angeles", | |
"original_purchase_date" => "2013-12-12 18:49:57 Etc/GMT", | |
"original_purchase_date_ms" => "1386874197000", | |
"original_purchase_date_pst" => "2013-12-12 10:49:57 America/Los_Angeles", | |
"expires_date" => "2013-12-12 18:53:54 Etc/GMT", | |
"expires_date_ms" => "1386874434000", | |
"expires_date_pst" => "2013-12-12 10:53:54 America/Los_Angeles", | |
"web_order_line_item_id" => "1000000027667229", | |
"is_trial_period" => "false" | |
}, | |
] | |
} | |
}.to_json | |
end | |
def no_purchase_response | |
{ | |
"status" => 0, | |
"environment" => "Sandbox", | |
"receipt" => { | |
"receipt_type" => "ProductionSandbox", | |
"adam_id" => 0, | |
"bundle_id" => "com.byliner.weekly", | |
"application_version" => "1", | |
"download_id" => 0, | |
"request_date" => "2013-12-17 22:03:12 Etc/GMT", | |
"request_date_ms" => "1387317792402", | |
"request_date_pst" => "2013-12-17 14:03:12 America/Los_Angeles", | |
"in_app" => [] | |
} | |
}.to_json | |
end | |
def parsed_apple_response | |
MultiJson.load apple_response | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment