Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Brian Garback's Profile

GitHub User: iGarbo

Site: www.barrelofjobs.com

Comments by Brian Garback

Avatar

@Nguyen Duc Giang.

add a billing address to your purchase.

response = gateway.purchase(1000, credit_card, :ip => "127.0.0.1", :billing_address => {
:name => "Test Guy",
:address1 => "123 W 423 E",
:city => "Somewhere",
:state => "CA",
:country => "US",
:zip => "88888"
}