xendit / xendit-php

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms
https://developers.xendit.co/api-reference/
MIT License
152 stars 76 forks source link

Installation Error: Unable to Extract Xendit PHP Package #215

Open YanHairulFirdan opened 10 months ago

YanHairulFirdan commented 10 months ago

I encountered an error while trying to install the Xendit PHP package. I ran the following command: composer require xendit/xendit-php --no-cache

However, I received the following error message:

In ZipDownloader.php line 185:

Failed to extract xendit/xendit-php: (1) "C:\Program Files\Git\usr\bin\unzip.EXE" -qq C:\project-path\vendor\composer\tmp-54522d8730ddd61942e3410fba8c803d.zip -d C:\project-path\vendor\composer\66c26f36

replace C:\project-path\vendor\composer\66c26f36/xendit-xendit-php-de6a316/test/Model/EwalletTest.php? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL (EOF or read error, treating as "[N]one" ...)

The archive may contain identical file names with different capitalization (which fails on case-insensitive filesystems) Unzip with unzip command failed, falling back to ZipArchive class

It seems there is an issue with the Xendit PHP package extraction process.

I'm using Windows 10, php 8.2.9 and composer 2.6.5

I need assistance in resolving this issue so that I can successfully install the Xendit PHP package. Thank you!

andrisyahputra commented 10 months ago

saya juga gagal extraxt dan error seperti sama

adityarx commented 10 months ago

Thanks for raising this both! We are looking into this šŸ™

YanHairulFirdan commented 10 months ago

The issue is, there are numerous duplicate classes in the test/Models directory.

sekaranglila commented 10 months ago

Hi @YanHairulFirdan @andrisyahputra you should be able to ignore the error message and proceed using the SDK as usual. We are working on a fix to remove the clashing types in our test classes so that the extraction error does not show up. Thank you for pointing this out šŸ™

trunghieu26 commented 7 months ago

How to check if an account exists or not when disbursing money in xendit ?