-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Issue: The endpoint https://killbill.github.io/slate/payment.html#capture-an-existing-authorization-using-paymentid errors out in PHP client, the chargeback reversal is correctly recorded though.
Code Snippet :
$apiInstance = $client->getPaymentApi();
$xKillbillCreatedBy = "user";
$xKillbillReason = "reason";
$xKillbillComment = "comment";
$paymentId = 'ded80305-5096-44e0-acd1-df97e6323858';
$transactionExternalKey = 'dd7ce7b0-c4a7-4ca2-84b5-80d0ae84c884';
$paymentTransactionBody = new PaymentTransaction();
$paymentTransactionBody->setPaymentId($paymentId);
$paymentTransactionBody->setTransactionExternalKey($transactionExternalKey);
$apiInstance->chargebackReversalPayment($paymentTransactionBody,$xKillbillCreatedBy,$paymentId,$xKillbillReason,$xKillbillComment) ;
Error in the client :
PHP Fatal error: Uncaught Killbill\Client\Swagger\ApiException: [402] Error connecting to the API (http://localhost:8080/1.0/kb/payments/ded80305-5096-44e0-acd1-df97e6323858/chargebackReversals) in H:\GitHub\killbill\master\killbill-client-php\lib\Api\PaymentApi.php:7965
Stack trace:
#0 H:\GitHub\killbill\master\killbill-client-php\lib\Api\PaymentApi.php(1860): Killbill\Client\Swagger\Api\PaymentApi->handleResponse()
#1 H:\GitHub\killbill\master\killbill-client-php\lib\Api\PaymentApi.php(1821): Killbill\Client\Swagger\Api\PaymentApi->chargebackReversalPaymentWithHttpInfo()
#2 H:\GitHub\killbill\master\killbill-client-php\test\getTenantTest.php(32): Killbill\Client\Swagger\Api\PaymentApi->chargebackReversalPayment()
#3 {main}
thrown in H:\GitHub\killbill\master\killbill-client-php\lib\Api\PaymentApi.php on line 7965
Metadata
Metadata
Assignees
Labels
No labels