File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -173,4 +173,32 @@ private function createApi($mode = Api::MODE_PRODUCTION)
173
173
174
174
return $ api ;
175
175
}
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
+ }
176
204
}
You can’t perform that action at this time.
0 commit comments