Skip to content

Commit f18d05d

Browse files
committed
Test for address error
1 parent b804820 commit f18d05d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: tests/Api/ApiTest.php

+28
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,32 @@ private function createApi($mode = Api::MODE_PRODUCTION)
173173

174174
return $api;
175175
}
176+
177+
public function test_create_payment_form_with_accents_in_address()
178+
{
179+
$api = $this->createApi();
180+
181+
$result = $api->createPaymentForm([
182+
'date' => '17/03/2018:10:40:10',
183+
'amount' => '24.80',
184+
'currency' => 'EUR',
185+
'reference' => '100008783',
186+
'comment' => 'Commande 100008783',
187+
'locale' => 'FR',
188+
'email' => 'test@example.org',
189+
'success_url' => 'http://example.org',
190+
'failure_url' => 'http://example.org',
191+
'context' => [
192+
'billing' => [
193+
'addressLine1' => '2 avenue de la botte aux bailles, Bâtiment Pasaïa',
194+
'city' => 'some city',
195+
'postalCode' => '12345',
196+
'country' => 'US',
197+
'stateOrProvince' => 'US-CA',
198+
],
199+
],
200+
]);
201+
202+
$this->assertIsArray($result);
203+
}
176204
}

0 commit comments

Comments
 (0)