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
153 stars 76 forks source link

How can i set Header Parameter? #162

Closed munir1121 closed 2 years ago

munir1121 commented 2 years ago

There is no option for Header Parameter.

munir1121 commented 2 years ago

https://paste.pics/880d891a72dcc9d26ee2fb6ae820053d

I would like to set this header to request.

https://developers.xendit.co/api-reference/?php#invoices

xen-HendryZheng commented 2 years ago

Hi @munir1121 Please refer to this guide : https://github.com/xendit/xendit-php#create-invoice

luminto17 commented 2 years ago

Hi @munir1121 , we recommend to use the latest version https://github.com/xendit/xendit-php/releases/tag/2.17.0, so you can enjoy the benefit of setting header in request for Create, Update, and Get APIs