Codexshaper / laravel-woocommerce

WooCommerce Rest API for Laravel
MIT License
198 stars 57 forks source link

Find payment gateway #46

Closed vivekaris closed 4 years ago

vivekaris commented 4 years ago

this will help to get payment gateway

Codexshaper commented 4 years ago

Thanks for your pull request. Please avoid duplication. Here is the possible solution

<?php

namespace Codexshaper\WooCommerce\Models;

use Codexshaper\WooCommerce\Traits\QueryBuilderTrait;

class PaymentMethod extends BaseModel
{
    use QueryBuilderTrait;

    protected $endpoint = 'payment_gateways';
}

Since it's first contribute so I'm merging it. Next time be careful before pull request.