Skip to content

Commit e812561

Browse files
committed
Don't pass state to Sage Pay unless country is US
1 parent 05e8274 commit e812561

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/Omnipay/TestCase.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@ public function getValidCard()
123123
'expiryMonth' => rand(1, 12),
124124
'expiryYear' => date('Y') + rand(1, 5),
125125
'cvv' => rand(100, 999),
126+
'billingAddress1' => '123 Billing St',
127+
'billingAddress2' => 'Billsville',
128+
'billingCity' => 'Billstown',
129+
'billingPostcode' => '12345',
130+
'billingState' => 'CA',
131+
'billingCountry' => 'US',
132+
'billingPhone' => '(555) 123-4567',
133+
'shippingAddress1' => '123 Shipping St',
134+
'shippingAddress2' => 'Shipsville',
135+
'shippingCity' => 'Shipstown',
136+
'shippingPostcode' => '54321',
137+
'shippingState' => 'NY',
138+
'shippingCountry' => 'US',
139+
'shippingPhone' => '(555) 987-6543',
126140
);
127141
}
128142

0 commit comments

Comments
 (0)