@@ -32,7 +32,7 @@ public function __construct(HttpClientFactoryInterface $factory)
32
32
public function paymentGetServices (): PaymentServiceCollection
33
33
{
34
34
try {
35
- $ response = $ this ->client ->request ('GET ' , 'payment/services ' ,);
35
+ $ response = $ this ->client ->request ('GET ' , 'payment ' ,);
36
36
$ data = \json_decode ($ response ->getBody ()->getContents (), true , 512 , JSON_THROW_ON_ERROR ,);
37
37
38
38
$ services = [];
@@ -50,7 +50,7 @@ public function paymentGetServices(): PaymentServiceCollection
50
50
public function paymentGetService (ServiceId $ serviceId ): PaymentService
51
51
{
52
52
try {
53
- $ response = $ this ->client ->request ('GET ' , \sprintf ('payment/services/ %s ' , $ serviceId ),);
53
+ $ response = $ this ->client ->request ('GET ' , \sprintf ('payment/%s ' , $ serviceId ),);
54
54
$ data = \json_decode ($ response ->getBody ()->getContents (), true , 512 , JSON_THROW_ON_ERROR ,);
55
55
56
56
return PaymentService::createFromResponse ($ data ['data ' ]);
@@ -62,7 +62,7 @@ public function paymentGetService(ServiceId $serviceId): PaymentService
62
62
public function paymentGetTransactions (ServiceId $ serviceId ): PaymentServiceTransactionCollection
63
63
{
64
64
try {
65
- $ response = $ this ->client ->request ('GET ' , \sprintf ('payment/services/ %s/transactions ' , $ serviceId ),);
65
+ $ response = $ this ->client ->request ('GET ' , \sprintf ('payment/%s/transactions ' , $ serviceId ),);
66
66
$ data = \json_decode ($ response ->getBody ()->getContents (), true , 512 , JSON_THROW_ON_ERROR ,);
67
67
68
68
$ transactions = [];
@@ -103,7 +103,7 @@ public function paymentTransactionCreate(ServiceId $serviceId, CreatePayment $re
103
103
try {
104
104
$ response = $ this ->client ->request (
105
105
'POST ' ,
106
- \sprintf ('payment/%s/transaction ' , $ serviceId ),
106
+ \sprintf ('payment/%s/transactions ' , $ serviceId ),
107
107
[
108
108
RequestOptions::JSON => $ request ->toArray (),
109
109
],
@@ -121,7 +121,7 @@ public function paymentGetTransaction(ServiceId $serviceId, PaymentTransactionId
121
121
try {
122
122
$ response = $ this ->client ->request (
123
123
'GET ' ,
124
- \sprintf ('payment/%s/transaction /%s ' , $ serviceId , $ transactionId ),
124
+ \sprintf ('payment/%s/transactions /%s ' , $ serviceId , $ transactionId ),
125
125
);
126
126
$ data = \json_decode ($ response ->getBody ()->getContents (), true , 512 , JSON_THROW_ON_ERROR ,);
127
127
0 commit comments