All URIs are relative to https://developers.hostinger.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| enableManualPaymentMethodV1() | POST /api/ecommerce/v1/stores/{store_id}/payment-methods/manual | Enable manual payment method |
enableManualPaymentMethodV1($storeId, $ecommerceV1PaymentEnableManualPaymentRequest): \Hostinger\Model\EcommerceV1PaymentManualPaymentResourceEnable manual payment method
Enable a manual payment method so the store can accept orders without an online payment provider.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\EcommercePaymentsApi(config: $config);
$storeId = store_01J8Z5F8W9K8M4A7B3C2D1E0FG; // string | The ID of the store to enable manual payment for.
$ecommerceV1PaymentEnableManualPaymentRequest = new \Hostinger\Model\EcommerceV1PaymentEnableManualPaymentRequest(); // \Hostinger\Model\EcommerceV1PaymentEnableManualPaymentRequest
try {
$result = $apiInstance->enableManualPaymentMethodV1($storeId, $ecommerceV1PaymentEnableManualPaymentRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EcommercePaymentsApi->enableManualPaymentMethodV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | string | The ID of the store to enable manual payment for. | |
| ecommerceV1PaymentEnableManualPaymentRequest | \Hostinger\Model\EcommerceV1PaymentEnableManualPaymentRequest |
\Hostinger\Model\EcommerceV1PaymentManualPaymentResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]