module FindPaymentMethodStubs
def successful_get_card_response
StubResponse.succeeded <<-XML
ROGJFe89QtbJL8QvjaJNMH0UG50
2013-05-25T17:49:12Z
2013-05-25T18:54:04Z
alcatraz@occulators.org
5
retained
4445
master
Alcatraz
Smedry
8
2020
123 Freedom Street
Apt. 8
Wanaque
NJ
02124
USA
201.344.7712
Alcatraz Smedry
credit_card
XXXX-XXXX-XXXX-4445
XML
end
def successful_get_invalid_card_response
StubResponse.succeeded <<-XML
CrY4e6wa3Jf4SMUZlvjFelW2YnQ
2013-07-19T17:05:18Z
2013-07-20T05:26:01Z
2
redacted
1881
8
credit_card
First name can't be blank
Last name can't be blank
Year is expired
Year is invalid
Number can't be blank
XXXX-XXXX-XXXX-1881
XML
end
def successful_get_sprel_response
StubResponse.succeeded <<-XML
RZf8ZQgvmgOfdWaRtAzMLXPSQbk
2013-04-26T13:11:07Z
2013-04-26T13:18:21Z
neelix@voyager.com
Some Pretty Data
cached
sprel
XML
end
def successful_get_paypal_response
StubResponse.succeeded <<-XML
X7DkJT3NUMNMJ0ZVvRMJBEyUe9B
2013-07-31T16:26:59Z
2013-07-31T16:27:26Z
shaun@mason.com
retained
paypal
XML
end
def successful_get_bank_account_response
StubResponse.succeeded <<-XML
seeQDV0jwJwFa1FUUsph6kPMTj
2013-08-16T17:20:33Z
2013-08-16T17:20:33Z
daniel@waterhouse.com
GeekyNote
cached
Daniel Waterhouse
First Bank of Crypto
checking
personal
021
4321
Daniel
Waterhouse
bank_account
021*
*4321
XML
end
end