Refund
If you need to refund an order without directly calling the Refund API, you can use the HasRefund
trait. This allows you to handle refunds efficiently within your application.
php
use Dasundev\PayHere\Concerns\HasRefund;
class Order extends Model implements PayHereOrder
{
use HasRefund;
}
// Refund an order.
Order::find('ORD1234')->refund();