bitpay / php-bitpay-client

PHP implementation for the BitPay cryptographically secure RESTful API
MIT License
165 stars 148 forks source link

Invoice adjustments? #235

Closed boooyu44 closed 7 years ago

boooyu44 commented 7 years ago

https://bitpay.com/api#resource-Invoices

POST /invoices/:invoiceId/adjustments

Is this possible using api? I dont see any method to accept over/under payment using code.

pieterpoorthuis commented 7 years ago

There's currently no PHP BitPay library method for accepting over&underpayments. It's also not on our roadmap, since BitPay is disabling accepting overpayments soon (1 month from now).

The only option for overpayments will be refunding the overpayment amount. The preferred method is to include the buyerEmail when creating the BitPay invoice, so BitPay can send an email to the customer to claim his overpaid amount back.