Payment Settings
Get store payment settings
Retrieves payment settings for a store.
Authorization: APIKey TOKEN.Show fieldsHide fields
unspecifiedBlocking type not specified.
noneAllow prepaid cards for all payment types.
trialsBlock prepaid cards for trial subscriptions only.
all_recurringBlock prepaid cards for all recurring payments (trials and subscriptions).
unspecifiedChargeback coverage type is not specified.
noneNo chargeback coverage provided.
fraudulentCoverage for fraudulent/unauthorized chargebacks only.
allCoverage for all chargebacks including disputes.
invalidInvalid state.
disabledPromo code stacking is disabled.
enabledPromo code stacking is enabled.
gift_cards_onlyPromo code stacking is enabled only for gift cards.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/payment-settings" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.paymentSettings.getStorePaymentSettings();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/payment-settings", headers=headers){
"adaptive_currency_enabled": true,
"block_prepaid_cards": "unspecified",
"chargeback_coverage": "unspecified",
"force_3d_secure": true,
"max_checkout_amount": 0,
"promo_code_stacking_behavior": "invalid",
"show_adaptive_currency_on_storefront": true,
"show_all_payment_methods_for_subscriptions": true,
"store_tax_inclusive_pricing": true,
"chargeback_coverage_max_amount": 0
}Updates store payment settings
Updates payment settings for a store.
Authorization: APIKey TOKEN.unspecifiedBlocking type not specified.
noneAllow prepaid cards for all payment types.
trialsBlock prepaid cards for trial subscriptions only.
all_recurringBlock prepaid cards for all recurring payments (trials and subscriptions).
invalidInvalid state.
disabledPromo code stacking is disabled.
enabledPromo code stacking is enabled.
gift_cards_onlyPromo code stacking is enabled only for gift cards.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/payment-settings" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"show_all_payment_methods_for_subscriptions": true,
"store_tax_inclusive_pricing": true,
"block_prepaid_cards": "unspecified",
"promo_code_stacking_behavior": "invalid",
"adaptive_currency_enabled": true,
"show_adaptive_currency_on_storefront": true
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.paymentSettings.updateStorePaymentSettings({
show_all_payment_methods_for_subscriptions: true,
store_tax_inclusive_pricing: true,
block_prepaid_cards: "unspecified",
promo_code_stacking_behavior: "invalid",
adaptive_currency_enabled: true,
show_adaptive_currency_on_storefront: true,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"show_all_payment_methods_for_subscriptions": True,
"store_tax_inclusive_pricing": True,
"block_prepaid_cards": "unspecified",
"promo_code_stacking_behavior": "invalid",
"adaptive_currency_enabled": True,
"show_adaptive_currency_on_storefront": True,
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/payment-settings", headers=headers, json=payload)