Store the WC STORE API endpoint in constant

This commit is contained in:
Narek Zakarian 2024-07-15 19:18:51 +04:00
parent 65aa05f9c0
commit b5fa8972d0
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -22,7 +22,8 @@ use WooCommerce\PayPalCommerce\Button\Endpoint\RequestData;
* Class UpdateShippingEndpoint
*/
class UpdateShippingEndpoint implements EndpointInterface {
const ENDPOINT = 'ppc-update-shipping';
const ENDPOINT = 'ppc-update-shipping';
const WC_STORE_API_ENDPOINT = '/wp-json/wc/store/cart/';
/**
* The Request Data Helper.