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
155 stars 77 forks source link

Expire Invoice with param for-user-id #166

Closed ipoool closed 2 years ago

ipoool commented 2 years ago

Currently, function expireInvoice() only have 1 parameter "$id". is it possible to add new param to support expire invoice based on sub-account? seems, I think you guys just add parameters like the below:

public static function expireInvoice($id, $params = [])
    {
        $url =  '/invoices/' . $id . '/expire!';

        return static::_request('POST', $url, $params);
 }
xen-HendryZheng commented 2 years ago

Hi @ipoool Please run composer update. We've added at 2.7.1 here : https://github.com/xendit/xendit-php/releases/tag/2.17.1

Thank you !