-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #547 from recurly/2-0-headers
Updating client to be compliant with RFC 2616: case-insensitive headers
- Loading branch information
Showing
6 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<transaction href="https://api.recurly.com/v2/transactions/abcdef1234567890"> | ||
<account href="https://api.recurly.com/v2/accounts/verena"/> | ||
<uuid>abcdef1234567890</uuid> | ||
<action>purchase</action> | ||
<amount_in_cents type="integer">30000</amount_in_cents> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<currency>USD</currency> | ||
<status>declined</status> | ||
<reference nil="nil"></reference> | ||
<test type="boolean">true</test> | ||
<voidable type="boolean">true</voidable> | ||
<refundable type="boolean">true</refundable> | ||
<transaction_error> | ||
<error_code>invalid_card_number</error_code> | ||
<error_category>hard</error_category> | ||
<merchant_message>The credit card number is not valid. The customer needs to try a different number.</merchant_message> | ||
<customer_message>Your card number is not valid. Please update your card number.</customer_message> | ||
</transaction_error> | ||
<cvv_result code=""></cvv_result> | ||
<avs_result code=""></avs_result> | ||
<avs_result_street nil="nil"></avs_result_street> | ||
<avs_result_postal nil="nil"></avs_result_postal> | ||
<created_at type="datetime">2011-04-30T12:00:00Z</created_at> | ||
<details> | ||
<account> | ||
<account_code>gob</account_code> | ||
<first_name>George Oscar</first_name> | ||
<last_name>Bluth</last_name> | ||
<company nil="nil"></company> | ||
<email>[email protected]</email> | ||
<billing_info type="credit_card"> | ||
<first_name nil="nil"></first_name> | ||
<last_name nil="nil"></last_name> | ||
<address1 nil="nil"></address1> | ||
<address2 nil="nil"></address2> | ||
<city nil="nil"></city> | ||
<state nil="nil"></state> | ||
<zip nil="nil"></zip> | ||
<country nil="nil"></country> | ||
<phone nil="nil"></phone> | ||
<vat_number nil="nil"></vat_number> | ||
<cc_type>visa</cc_type> | ||
<year type="integer">2011</year> | ||
<month type="integer">12</month> | ||
<first_six>411111</first_six> | ||
<last_four>1111</last_four> | ||
</billing_info> | ||
</account> | ||
</details> | ||
</transaction> |
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
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