Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | protected function provideMinimalPaymentRequest() |
||
20 | { |
||
21 | $paymentRequest = new EcommercePaymentRequest(new FakeShaComposer); |
||
22 | $paymentRequest->setPspid('123456789'); |
||
23 | $paymentRequest->setOrderid('987654321'); |
||
24 | $paymentRequest->setOgoneUri(EcommercePaymentRequest::TEST); |
||
25 | |||
26 | // minimal required fields for ogone (together with pspid and orderid) |
||
27 | $paymentRequest->setCurrency("EUR"); |
||
28 | $paymentRequest->setAmount(100); |
||
29 | |||
30 | // these fields are actually optional but are good practice to be included |
||
31 | $paymentRequest->setCustomername("Louis XIV"); |
||
32 | $paymentRequest->setOwnerAddress("1, Rue du Palais"); |
||
33 | $paymentRequest->setOwnerTown("Versailles"); |
||
34 | $paymentRequest->setOwnerZip('2300'); |
||
35 | $paymentRequest->setOwnerCountry("FR"); |
||
36 | $paymentRequest->setEmail("[email protected]"); |
||
37 | |||
38 | // this field is mandatory in some european countries |
||
39 | $paymentRequest->setSecure(); |
||
40 | |||
41 | return $paymentRequest; |
||
42 | } |
||
43 | } |
||
44 |